Closed OnkelTem closed 4 years ago
Hi, @OnkelTem. You can always access the Redux store via store.getState()
.
import store from '../where/you/define/store'
mount({
"dashboard/:inputId": route({
getData(request) {
const state = store.getState()
return state.path.value
}
})
})
Read more about the
store
API in Redux docs.
Hi!
Sorry if my question may seem naive, but I'm not sure how can I access my redux state from inside my navi erm.. contraptions?
E.g. this is a part of my App component:
and this is a part of my routes:
I would like to access my Redux store from the
/*---- Here I need to access state.something ----*/
line. Any ideas?