Development #41
Replies: 2 comments
-
After migrating from store like Zustand to Context which is just to prevent the prop drilling but not additionally being used as a store, In current migration version the store contains the
Currently the issue I see here is: In Context despite any component being a consumer or not, any children of the provider will re-render. Yes, I discussed above that we shouldn't worry about re-renders but here we should because if any developer things to add custom components which could be heavy that might get affected? Yes that's the dev concern however coudn't we expose some sort of dynamic store hook which is compatible with all kinds of store or just let the user use his own hooks across the custom hooks? |
Beta Was this translation helpful? Give feedback.
-
Gave a thought to Zustand again 😅 It's just 3KB (Bundlephobia) |
Beta Was this translation helpful? Give feedback.
-
This will contain all the changelogs, decissions, discussions that I have regarding the architecture of this project.
Beta Was this translation helpful? Give feedback.
All reactions