Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move away from redux #1576

Closed
chaffeqa opened this issue Oct 31, 2019 · 3 comments
Closed

Move away from redux #1576

chaffeqa opened this issue Oct 31, 2019 · 3 comments

Comments

@chaffeqa
Copy link

With hooks + context, it seems the trend is for applications to not default to including redux as the centralized state manager.

I was wondering how difficult it would be to move from redux to pure react. Would that seem feasible with the current implementation or more of a massive lift?

@alexreardon
Copy link
Collaborator

One big challenge is a fast deep state updates

facebook/react#13739

For us, Context is too slow. We have a lot of shared state that needs to be consumed by a lot of components. react-redux allows us to have blazingly fast state updates

@fmendez89
Copy link

Maybe moving to Recoil when it gets a bit more mature would be a real option. Currently is on beta, but already powerful and flexible.

Take a look here
https://recoiljs.org/

@afzalsayed96
Copy link

@alexreardon another interesting alternative to consider: https://github.com/dai-shi/react-tracked

Total size is only around 3.8Kbs minified as compared to 21Kbs+ for redux + react-redux

From their Benchmarks

React Tracked provides useSelector hook from React Redux. So, the transition from React Redux hooks to React Tracked should be easy.

benchmark result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants