mobx-react v5.1.0 Release Notes
-
- 🛠 Added support for React 16.3, including support for the
getDerivedStateFromProps
life-cycle hook. MobX will no longer usecomponentWillMount
hook internally, so that it can be used inStrictMode
react as well. Fixes #447 - Static properties of a function component are now automatically hoisted when the component is wrapped by
observer
. Implements #427 - ⚡️ Misspelled export
componentByNodeRegistery
is now properly export ascomponentByNodeRegistry
as well, please update consumers, the mispelled version will be dropped in the next major. Fixes #421 - 🗄 Deprecated the support for the
inject
property onObserver
, it is fundamentally broken and should not be used. Useinject
on the enclosing component instead and grab the necessary stores from the closure. Fixes #423 - ⚠ Added warning about using
observer
on a React.PureComponent, this will become an exception in the next major. Fixes #309 - ⚡️ Mobx-react will now print a warning when combining
observer
with a customshouldComponentUpdate
implementation. Fixes #417
- 🛠 Added support for React 16.3, including support for the