erikras / erikras/react-redux-universal-hot-example
How get promise as result of store.dispatch
- Dominant language
- JavaScript
- Stars
- 12.1k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
Hey! You develop very useful starter kit for react-redux community. I use a lot of awesome things from this repo, but there is one things I can't do.
I try to write simple react-redux (not universal!) app with using [react-router](https://github.com/reactjs/react-router) (and [react-router-redux](https://github.com/reactjs/react-router-redux) of course).
I seen in your code, how [dispatch return promise](https://github.com/erikras/react-redux-universal-hot-example/blob/master/src/routes.js#L28) from UI, but I can't apply this for my app, because dispatch always returned `undefined` in UI.
What should I write in my code for use `.then(...)` with dispatch in `onEnter` hook from router for example?
Can you help me?
Contributor guide
Assessment
This issue has not been assessed yet.