Replies: 1 comment 6 replies
-
You can use mutate to update the cached value, there is a PR (#457) to add native subscription support which will solve your issue. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use SWR to show and refresh every X seconds a conversation component between 2 users.
But i don't want that SWR will fetch every time all the messages, but always fetch for new ones.
How can I do it? because every time new data arrives it will override the old one.
Any ideas?
BTW, im using redux if it helps somehow
Another question, is it make sense to update redux state when fetching with swr? it will not cause an infinite rendering loop?
Beta Was this translation helpful? Give feedback.
All reactions