easy-peasy icon indicating copy to clipboard operation
easy-peasy copied to clipboard

Seeing duplicate stores in redux devtools with useLocalStore

Open johtso opened this issue 3 years ago • 2 comments

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/

image

johtso avatar Jun 21 '21 19:06 johtso

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?

johtso avatar Jun 22 '21 15:06 johtso

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.

ctrlplusb avatar Aug 23 '21 08:08 ctrlplusb

Maybe this is fixed by #769 ?

jmyrland avatar Sep 16 '22 14:09 jmyrland

Should be fixed by #769 - will reopen if it is still an issue.

jmyrland avatar Sep 21 '22 14:09 jmyrland