You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to recent Flow behaviour change, had to change Action type generics to be Action<State, Props, Return> from Action<State, Props, AllActions>. In most cases just removing the third generic will be fine. Also Actiondispatch type is now better typed, so might surface some new errors.
Typescript ActionAny type has been renamed Action and supports providing correct return type (still default to void tho)
New feature
createSelector is a new exported member that allows creating reselect like selectors, but optimised for sweet-state
defaults.batchUpdates is a new settings that leverages React scheduler to batch updates and reduce the number of partial re-renders on state change. Currently defaults to false but might be turned on by default in the future