Replies: 1 comment
-
Could you show us the code? how is it being called? If you call revalidateTag in a server action, it should automatically do the client side cache handling. I guess you might be using a Route Handler instead? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
i have a problem , i have button when i click on it , it revalidte data for section in the same page , but sometimes data returns is not correct and some time it correct , if not correct when i refresh my page my data returns correct , when i convert this page to client fetching using rtk query , when i click on button and revalidate data using rtk query all data is correct , what i know that revaliteTag is revalidate tag for the next request not immeiatley ? so how i can deal with this situation should i redirect or router.refresh ? i think it's not ideal
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions