We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 911073a commit d69f1c1Copy full SHA for d69f1c1
docs/guides/flux.md
@@ -117,6 +117,21 @@ To avoid this, you can do one of three things:
117
```
118
119
120
+Accessing route and params from action creators
121
+---------------------------------
122
+
123
+You can create your own `RouterStore` and fire an action in `run` callback:
124
125
+```js
126
+Router.run(routes, (Handler, state) => {
127
+ ActionCreators.changeRoute({ state });
128
+ React.render(<Handler/>, document.body);
129
+});
130
+```
131
132
+Let `RouterStore` keep router state and add a public method to obtain it.
133
+This way your action creators and other stores can learn about current router state.
134
135
Handling route changes as actions
136
---------------------------------
137
0 commit comments