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

useLocalStore is not destroyed?

Open Hatsunyan opened this issue 5 years ago • 2 comments

Hi. im trying to use useLocalStore, but i see this in redux dev tools image after component using useLocalStore desctoyed, store not? I have multiple same stores in dev tools if i destroed and recreated component.

Hatsunyan avatar May 14 '21 11:05 Hatsunyan

i'm found same issue in redux devtool repo https://github.com/reduxjs/redux-devtools/issues/366 i think is not easy-peasy problem, it`s dev tool or redux problem. But is store not terminated, it's maybe a big memory problem. And same problem if use createContextStore.

Hatsunyan avatar May 17 '21 14:05 Hatsunyan

i'm investigated this problem looks like its problem only for redux dev tool, i tried to reproduce create many local stores and destoy it, i'm not find big memory leaks.

Hatsunyan avatar May 18 '21 09:05 Hatsunyan