easy-peasy
easy-peasy copied to clipboard
Seeing duplicate stores in redux devtools with useLocalStore
For each store created, a duplicate seems to get made that is never used, and appears in redux devtools.
Am I doing something wrong, or is there something odd going on here?
I made a simple example:
https://nw7h9.csb.app/

Aha, so this is just standard StrictMode
behavior. New to react so this was surprising to me.
Any idea if there's a way to not have devtools cluttered with those empty stores while developing?
Thanks for this @johtso.
There is some valuable related discussions on this here:
- https://github.com/reduxjs/redux-devtools/issues/366
- https://github.com/reduxjs/redux/issues/3871
I am going to try a few things out.
Maybe this is fixed by #769 ?
Should be fixed by #769 - will reopen if it is still an issue.