Skip to content

Commit

Permalink
Merge pull request #801 from julen/docs/migrating
Browse files Browse the repository at this point in the history
Migrating docs: point to `createStore()` source file
  • Loading branch information
gaearon committed Sep 25, 2015
2 parents 9f02037 + f537111 commit 3f02418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/recipes/MigratingToRedux.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ It is also possible to do the reverse and migrate from Redux to any of these lib

Your process will look like this:

* Create a function called `createFluxStore(reducer)` that creates a Flux store compatible with your existing app from a reducer function. Internally it might look similar to [`createStore`](../api/createStore.md) implementation from Redux. Its dispatch handler should just call the `reducer` for any action, store the next state, and emit change.
* Create a function called `createFluxStore(reducer)` that creates a Flux store compatible with your existing app from a reducer function. Internally it might look similar to [`createStore`](../api/createStore.md) ([source](https://github.com/rackt/redux/blob/master/src/createStore.js)) implementation from Redux. Its dispatch handler should just call the `reducer` for any action, store the next state, and emit change.

* This allows you to gradually rewrite every Flux Store in your app as a reducer, but still export `createFluxStore(reducer)` so the rest of your app is not aware that this is happening and sees the Flux stores.

Expand Down

0 comments on commit 3f02418

Please sign in to comment.