-
Hi Daishi, I created a package called jotai-scheduler: https://github.com/L-Qun/jotai-scheduler It is used to solve the issue of state update priorities. Jotai helps us address the problem of re-rendering, but there may be different priorities in the rendering order of components. Therefore, I invented jotai-scheduler. It is still in its early stages; please let me know your thoughts. All components share the same state, but each component has a different level of importance. For instance, the Before use Now we use Important content will be displayed to users more quickly, thereby providing a better user experience. The only difference from the native Jotai API is that it requires passing a
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Can this library be added to Jotai Labs https://github.com/jotaijs? |
Beta Was this translation helpful? Give feedback.
-
While I like the idea of scheduler and/or batching for Jotai. |
Beta Was this translation helpful? Give feedback.
I agree with you. If users find that
useDeferredValue
oruseTransition
cannot solve their problems, or if they are using React 17, this library can be helpful.