-
Hey, there might be an obvious answer to this, but it's my first time using Here's what I'm trying to achieve: However, I'm running into issues if a user isn't actually signed in, meaning the initial request to retrieve their details fails. Since the Basically my question is the following; is there a built in way to specify that a If there isn't something supported out of the box, I assume I will have to keep track of whether the initial attempt failed in a different matter, using a Thanks in advance! I guess this is somewhat a duplicate of #4512, although specifically for failed requests, but I'd still be curious what your proposed solution would look like. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I tried the alternative solution I mentioned above, which seems to work. Essentially what I'm doing now is only enabling the I did however run into another problem, which is the following: However, when I set Is there a better way of solving this, because Thanks again and apologies for the long post. |
Beta Was this translation helpful? Give feedback.
-
But, I would generally look at a different app setup, because if you do this, the queries will still be in error state. On approach would be to separate into authenticated an non-authenticated app and just render different components:
|
Beta Was this translation helpful? Give feedback.
retryOnMount
can do this. from the docs:But, I would generally look at a different app setup, because if you do this, the queries will still be in error state. On approach would be to separate into authenticated an non-authenticated app and just render different components: