conditionally re-fetching data with SWR #1648
-
Is there a way I can re-fetch data and make the request all over again on a certain condition with SWR? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
When the SWR key changes, it will refetch automatically. So you can put the key in a state and update it when needed. |
Beta Was this translation helpful? Give feedback.
When the SWR key changes, it will refetch automatically. So you can put the key in a state and update it when needed.