Answer the question
In order to leave comments, you need to log in
How to get store state from last page?
using router redux
doing
const store = createStore(reducer, applyMiddleware(thunk));
console.log(store.getState());
export default store;
import store from "../app.jsx"
import {store} from "../app.jsx"
and here console.log(store) is already undefined
the collector does not swear, can the store be imported to other application pages at all?
ps you need to be able to check the state through getState () + there is a function that is signed on the store directly not from the component.
pss
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question