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

Why not middleware? #19

Open
piotr-cz opened this issue Jan 9, 2018 · 1 comment
Open

Why not middleware? #19

piotr-cz opened this issue Jan 9, 2018 · 1 comment

Comments

@piotr-cz
Copy link

piotr-cz commented Jan 9, 2018

What it the benefit of implementing such functionality at the Redux-Persist level vs as Redux middleware (ie. like with redux-state-sync)?

Only one I can think of is that as it's dependent on Redux-Persist, so all app instances are starting with latest state.

When similar functionality is implemented as middleware, only single actions are synced. Using this module whole state is being retrieved and hydrated.

@behnammodi
Copy link

Of course, redux-persist-crosstab is not a middleware only. initStateWithPrevTab and withReduxStateSync is Redux level method

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

No branches or pull requests

2 participants