We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f17bd6 commit ba7476aCopy full SHA for ba7476a
CHANGELOG.md
@@ -1,6 +1,8 @@
1
# Change Log
2
3
## [Unreleased]
4
+### Changed
5
+- Avoid React render warning in test (#15)
6
7
## [1.1.0] - 2020-02-24
8
### Changed
src/index.js
@@ -6,7 +6,7 @@ const CONTEXT_LISTENERS = (
);
const createProvider = (OrigProvider, listeners) => React.memo(({ value, children }) => {
9
- if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test') {
+ if (process.env.NODE_ENV !== 'production') {
10
// we use layout effect to eliminate warnings.
11
// but, this leads tearing with startTransition.
12
// eslint-disable-next-line react-hooks/rules-of-hooks
0 commit comments