-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0400e4e
commit 02e8ea3
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Prior to `1.0`, icrementing the second decimal place indicates a potential breaking change. | ||
|
||
**0.8.x to 0.9.x** | ||
|
||
- Stores are now singletons. The dispatcher's `getStores` method must go from... | ||
```javascript | ||
getStores: function () | ||
return{ | ||
myStore: MyStore() | ||
} | ||
} | ||
``` | ||
to... | ||
```javascript | ||
getStores: function () | ||
return{ | ||
myStore: MyStore | ||
} | ||
} | ||
``` | ||
where `MyStore` is the output of `Flux.createStore` | ||
|
||
- Scheme values are now set on a `store.state` object rather than directly on the store itself. If you are using `scheme`, and accessing and scheme properties directly within a store (rather than just through `this.set`), you will need to update your code to access the property from the `state` object... | ||
```javascript | ||
this.mySchemeProp.push(newValue); | ||
``` | ||
needs to become... | ||
```javascript | ||
this.state.mySchemeProp.push(newValue); | ||
``` |