You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to this library, and I'm having issues with cache (default options) when an error is thrown. I would like to not cache errors so query will always refetch when component is remounted and by invoking refetch for a manual retry, instead of re-serving the error without querying the server.
Is there a way to achieve that, without altering defaults for successful responses ?
Currently I'm using forceFetchOnMount option but this also fetch on success responses (which is unnecessary), and this is not solving the behavior with refetch.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm new to this library, and I'm having issues with cache (default options) when an error is thrown. I would like to not cache errors so query will always refetch when component is remounted and by invoking
refetch
for a manual retry, instead of re-serving the error without querying the server.Is there a way to achieve that, without altering defaults for successful responses ?
Currently I'm using
forceFetchOnMount
option but this also fetch on success responses (which is unnecessary), and this is not solving the behavior withrefetch
.Thanks
Beta Was this translation helpful? Give feedback.
All reactions