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
is there a way to keep track if a call is a refetch or just an initial fetch? is there a way to add a parameter to QueryFunctionContext so that the queryFn is aware if its being called by a refetch()?
the usecase is we have an api that has a refreshCache parameter and on initial fetch the refreshCache should be false but if it is a refetch the refreshCache should be set to true
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.
-
is there a way to keep track if a call is a refetch or just an initial fetch? is there a way to add a parameter to QueryFunctionContext so that the queryFn is aware if its being called by a refetch()?
the usecase is we have an api that has a refreshCache parameter and on initial fetch the refreshCache should be false but if it is a refetch the refreshCache should be set to true
Beta Was this translation helpful? Give feedback.
All reactions