Open stephan-v opened 5 years ago
We're not exposing the store object on purpose as many are using it in production. That can be easily done by just adding window.store = store
in your store creator or by adding a custom store enhancer.
But there's a plan for future versions to have a button to expose it when needed, together with the actions/states history for debugging from the console.
I do not have access to the store that is being created though. I am looking for a way to scrap a third party redux store.
@stephan-v for now you can get it from Redux DevTools, just click on Provider component and it'll be in props, which can be accessed from $r
. Or you can get it from Sources like here.
Is there any way to read the information that is currently in the redux store from outside of the application?
In react this would be possible by doing something like this before the react application is set up:
Essentially you are faking a devtools plugin which is not there and mocking up your own object with the hooks that are in the react-devtools repository.