Only need a refetch to indexedDB, use mutate or revalidate? #686
Answered
by
sergiodxa
zhouhanseng
asked this question in
Q&A
-
I am using SWR with indexedDB. Here's the scenario, very simple: I update one list item in indexedDB, after that I need to refresh the List by making an indexedDB query to get the list again. As the indexedDB request is very fast, I don't need to update the local data immediately. I just need a refetch. I found calling |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Oct 10, 2020
Replies: 1 comment 2 replies
-
Revalidate is deprecated, it’s preferable to only use mutate without parameters. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
zhouhanseng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Revalidate is deprecated, it’s preferable to only use mutate without parameters.