1 | # Upgrade Guide
|
2 |
|
3 | ## `0.5.0`
|
4 |
|
5 | ### React addons moved to fluxible-addons-react
|
6 |
|
7 | The React addons have been broken out into a separate package called [fluxible-addons-react](https://github.com/yahoo/fluxible-addons-react). This was done to faciliate the use of Fluxible with other view libraries like React Native.
|
8 |
|
9 | Your application should depend on `fluxible-addons-react` directly and require the addons from that package.
|
10 |
|
11 | ### `connectToStores`'s `getStateFromStores` signature has changed to `(context, props)`
|
12 |
|
13 | Your `connectToStores` should change from:
|
14 |
|
15 | ```js
|
16 | connectToStores(Component, [MyStore], (stores, props) => {
|
17 | return {
|
18 | foo: stores.MyStore.getFoo()
|
19 | };
|
20 | });
|
21 | ```
|
22 |
|
23 | to
|
24 |
|
25 | ```js
|
26 | connectToStores(Component, [MyStore], (context, props) => {
|
27 | return {
|
28 | foo: context.getStore(MyStore).getFoo()
|
29 | };
|
30 | });
|
31 | ```
|