I need to get the whole Redux state as a JSON file without payload or action from Redux DevTools, just the state.
Setting Up a Local JSON file In a blank Create React App project, create a local JSON file named data. json inside the public directory. Your Fetch API calls made from a React component always look for files or any other relevant assets inside this public directory.
current; // Traverse the root react element to find all Redux States in the app traverse(internalRoot); After running this script, all Redux States will be available inside the variable stores , and you can access them via [... stores].
One of the main principles of the Redux store is, that it can only be changed by reducer functions, whenever an action is dispatched.
State -> Raw -> Copy & Paste
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With