How to handling polling and rendering stale data #2087
-
It would be great if there way a way to keep stale data around until an async selector refreshes. Right now I can write a selector that fetches data, and use As far as I can see, the only way around this is to write a hook that fetches and writes data to an atom on success. This is fine for simple cases, but if I have to make a few requests in sequence to get the data, it gets pretty complicated. Any suggestions how I might handle this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
React 18 Transitions are useful for this use case: https://recoiljs.org/docs/guides/transitions |
Beta Was this translation helpful? Give feedback.
React 18 Transitions are useful for this use case: https://recoiljs.org/docs/guides/transitions