v2.7.1
⚠️ Warning
This version accidentally causes a change in behaviour on React 16 with defaults.batchedUpdates
unset (or set to false) on Containers that use onUpdate
. Basically calling to setState inside an onUpdate
might trigger a warning and the subscribers might receive the updates on next tick. We recommend staying on <= v2.7.0 until moving to React 18
Bug fix
- Removed old implementation of Container (class based) that was causing a memory leak is some circumstances. It was replaced with a functional implementation that should perform better. There is a change in behaviour tho: Container stores now get initialised lazily, when the first hook/subscriber is rendered, so
onInit
might be deferred. In most cases that should improve performance, but might make some tests failing if only a container is rendered (with no subscribers).