mobx-react 6.1.4 → 6.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # MobX-React Changelog
2
2
 
3
+ ### 6.1.5
4
+
5
+ - Added check if `process.env` is available, fixes [#801](https://github.com/mobxjs/mobx-react/issues/801) through [#812](https://github.com/mobxjs/mobx-react/pull/812) by [@ynejati](https://github.com/ynejati)
6
+ - Added warning if component's `render` method is accidentally overwritten. [#799](https://github.com/mobxjs/mobx-react/pull/799) by [@Venryx](https://github.com/Venryx). Helps prevent memory leaks as in: [#797](https://github.com/mobxjs/mobx-react/issues/797)
7
+
8
+ ### 6.1.4
9
+
10
+ - Update dependency mobx-react-lite@1.4.2 which includes fix for [RN Fast Refresh](https://github.com/mobxjs/mobx-react-lite/issues/226)
11
+
3
12
  ### 6.1.2 / 6.1.3
4
13
 
5
14
  - Add reexport of `useObserver` from `mobx-react-lite` [#734](https://github.com/mobxjs/mobx-react/issues/734)
@@ -60,7 +69,7 @@
60
69
  **Improvements**
61
70
 
62
71
  - Hook based components are now supported by mobx-react (in fact, the package is now implemented using hooks)
63
- - Using `PureComponent` is now _recommended_.
72
+ - Using `PureComponent` is now _recommended_ for class-based components or `React.memo` for functional ones.
64
73
  - For `observer` based components, there will now be an additional `Observer` component in the tree.
65
74
  - Two new hooks have been exposed, in case you want to manage local state in observable: `useLocalStore` and `useAsObservableSource`.
66
75
  - `MobXProviderContext` is now exposed from the package, in case you want to consume the context used by `Provider` with a `useContext` hook.