Open IrvingArmenta opened 2 weeks ago
1: No 2: No
As useContextSelector
RFC is basically rejected, I would generally suggest the following.
This library exists as an internal library for React-Tracked and has been maintained. Its purpose is to make it compatible with Concurrent Rendering, but it's not often the capability people need.
Question
I found this library by looking for a way to enhance/improve the functionality of
React.Context
So I have some questions about what not to do, best practice usage, etc.export const useMainStoreDispatch = () => { return useContextSelector(context, (v) => v[1]); }