New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking Change: Change default StoreGroup #174
Conversation
- Make `CQRSStoreGroup` default - Rename `CQRSStoreGroup` to `StoreGroup` - Remove old `StoreGroup` and `QueuedStoreGroup` - Carve out this to module https://github.com/almin/legacy-store-group
Thnking points: Which is default implementation of
|
I think that this point should be resolved by checker. |
* Update own state property if needed. | ||
* If `this.shouldStateUpdate(currentState, newState)` return true, update `this.state` property with `newState`. | ||
*/ | ||
setState(newState: State): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add Store#setState
.
The motivation is that improve immutability checker.
To direct modify Store#state
prevent the check.
Prevent React will allow to directly assign in constructor and componentWillReceiveProps. |
CQRSStoreGroup
defaultCQRSStoreGroup
toStoreGroup
StoreGroup
andQueuedStoreGroup
fix #141