microsoft / redux-dynamic-modules

Modularize Redux by dynamically loading reducers and middlewares.
https://redux-dynamic-modules.js.org
MIT License
1.07k stars 116 forks source link

DynamicModuleLoader resetting the attached store values #133

Open jeevasusej opened 4 years ago

jeevasusej commented 4 years ago

After load a component using DynamicModuleLoader, when I moving to another page and come back to the same page, the values are reset. It's not retaining the old attached values with the store.

 <DynamicModuleLoader modules={[getNewUserDialogModule()]}>
                <ConnectedNewUserDialogContent />
            </DynamicModuleLoader>
ljosberinn commented 4 years ago

Working as intended:

Use the DynamicModuleLoader React component to add/remove modules when components mount/unmount