当我从DOM中删除Rect组件时,我想从内存中删除Redux存储

当我从DOM中删除我的React组件时,我想从内存中删除Redux存储。

I have an application which have several ReactDOM.render(...), and when the ReactDOM.unmountComponentAtNode(...) are runned, I would like to remove the Redux store from the memory. I have read that it is stored in the RAM even if you unmount the component this way. The reason for why I would like to remove it is because it is adding more and more stores for each time I "visit that Hash URL" which contains the different React components.

我读到Redux存储在刷新页面之前不会被删除,并且在单个页面应用程序上不会发生。

评论