V
V
vaskadogana2017-02-16 10:40:21
React
vaskadogana, 2017-02-16 10:40:21

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

1 answer(s)
I
Islam Ibakaev, 2017-02-16
@vaskadogana

what does "from the last page" mean?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question