Replies: 3 comments 2 replies
-
|
This is a great idea and I love how it's implemented in the easiest way possible, which so far is the best out of all these share-state libraries. However... If you haven't already, check out "Jotai" which does something similar, albiet a little bit more complex. However it has one great advantage: When the state changes in Jotai atoms, it only re-renders the components using these states, and not the entire app. With use-between, I noticed that when I use it in ComponentA and ComponentB only, ComponentC will still trigger a re-render when those shared states are changed. Is there any plans to eliminate unnecessary re-renders in use-between like in Jotai? |
Beta Was this translation helpful? Give feedback.
-
|
Never mind on this issue, I realized I had some old code when I tested use-between that was causing a re-render from something else unrelated to use-between. |
Beta Was this translation helpful? Give feedback.
-
|
I've been using useBetween for over a month now and I've changed the way I develop components and hooks because of this. It's excellent, easy, and fast. And my code is much smaller. It would be great if React included this built-in as a default Hook, it's better than every State manager I have used in the past. Excellent work. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
React 18 was recently released and I began to see mentions of concurrent rendering on the Internet more often. We are all very excited about the new release and want to be ready! One of the checks to make sure your application is ready for a new rendering mode is to make sure it works in Strict Mode.
In release 1.3.4 I added support for Strict Mode - now everything works great. #33
You can keep improving your projects and keep up with the times.
Enjoy your code!
This discussion was created from the release 1.3.4.
Beta Was this translation helpful? Give feedback.
All reactions