UNPKG

842 BMarkdownView Raw
1# Upgrade Guide
2
3## `0.5.0`
4
5### React addons moved to fluxible-addons-react
6
7The 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
9Your 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
13Your `connectToStores` should change from:
14
15```js
16connectToStores(Component, [MyStore], (stores, props) => {
17 return {
18 foo: stores.MyStore.getFoo()
19 };
20});
21```
22
23to
24
25```js
26connectToStores(Component, [MyStore], (context, props) => {
27 return {
28 foo: context.getStore(MyStore).getFoo()
29 };
30});
31```