-
|
Hi, I have a Nav component that I render on every page which has a query to get the current logged in user. I also have an accounts page which fires a similar query to the one in the Nav component but with more fields. From the sign in page (this page also renders the nav) I click sign in and then navigate to the accounts page but the query to get the current user doesn't fire 🤷♂️ If I set the requestPolicy to Here's my code, any help is appreciated 🙏 Nav component: Account page: Sign in page: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Ok, so are you using the default cache or Graphcache? And is this rendering as you expect?
If it is then you may have a cache hit depending on your cache. Maybe the request has already been fulfilled before? Maybe if you're using Graphcache then the fields are already cached? The |
Beta Was this translation helpful? Give feedback.
Ok, so are you using the default cache or Graphcache? And is this rendering as you expect?
If it is then you may have a cache hit depending on your cache. Maybe the request has already been fulfilled before? Maybe if you're using Graphcache then the fields are already cached?
The
urql-devtoolscould help you understand the condition, but I don't really have enough context to explain what exactly your app is querying here