Replies: 2 comments 10 replies
-
uSES fixes tearing but doesn't behave nicely with promises which is one of the goals of Jotai. |
Beta Was this translation helpful? Give feedback.
8 replies
-
@dai-shi And another question is why you use useReducer instead of useState. I think the performance of useState is better than useReducer because the React team has already removed eager state policy from useReducer: facebook/react#22445 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://codesandbox.io/s/react-tearing-jotai-wqwwqt?file=/src/Controller.js
You can see that there are tearing issues between the individual components, and React18 also remove eagerState for useReducer.
Beta Was this translation helpful? Give feedback.
All reactions