Changelog
3.2.0
Changelog
3.1.2
cloneWithProps()
instead of cloneElement()
to fix context passing with FluxComponent. See this issue for an explanation.Changelog
3.1.0
getStateAsObject()
is used inside default state getters for connectToStores()
. This should be overridden alongside Store.assignState()
.stateGetter
for FluxComponent. (@tappleby)setState()
called outside dispatch handler. There are some valid reasons you may want to do this, primarily tests.Changelog
3.0.0
this.setState(state => ({ foo: state.foo + 1 }))
.Store.assignState()
can be overridden to customize the top-level state type.FluxComponent
. Pass a function as the render
prop.connectToStore()
accepts a single state getter as the second parameter, which is passed an array of stores corresponding to the passed keys.render
prop instead.connectToStores()
no longer checks if component is mounted before updating, since isMounted()
is deprecated in React 0.13. 99% of the time, this shouldn't be a problem, and it's easily worked around using the render
prop. Let me know if this is a serious issue for you.FluxComponent
updates in componentWillReceiveProps()
instead of componentDidUpdate()
, preventing extra render.Store#getState()
.const
over let
.Big thanks to @tappleby, @hugobessaa, @gaearon, @emmenko, @ariabuckles, and everyone else who submitted a PR or an issue or contributed in any way.