You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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