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
Home page - shows a list of items with a status. For example, let's say all items have the status New.
Item 1 page - here we make a different API call to retrieve item details. You can also do a PUT request to update the status to "Not Interested".
Scenario:
User navigates freely between the pages. I want to cache the information since it will always be the same. I do not want to make any API requests when they click around.
The only time I want to refetch on the Home Page is when the user has clicked "Not Interested" on the Item 1 page.
Is there a way to do this? I have used revalidateIfStale: false and revalidateOnMount: false. But this does not seem to be working at all.
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.
-
Hi all,
I have two pages
Scenario:
Is there a way to do this? I have used
revalidateIfStale: false
andrevalidateOnMount: false
. But this does not seem to be working at all.What is the best way to achieve this behaviour?
Beta Was this translation helpful? Give feedback.
All reactions