How does useDeferredValue work with useSWr? #2939
Unanswered
Isaac-Leonard
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been using suspend-react to work with suspense but having issues combining it with useDeferredValue and so not having clean rerenders.
I'm looking at moving to SWR as it seems to be a more official library and handles things properly however I have not seen any reference to useDeferredValue in the docs?
Do I need to wrap the keys in useDeferredValue myself or will useSWR handle that for me when I enable the suspense option?
Theres also a good chance I'm off with all of this due to the poor documentation of suspense and useDeferred in react in which case any help would be welcome.
Beta Was this translation helpful? Give feedback.
All reactions