Skip to content

Commit ba7476a

Browse files
committed
remove test env checking (I wasn't aware this is not required), close #15
1 parent 1f17bd6 commit ba7476a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Change Log
22

33
## [Unreleased]
4+
### Changed
5+
- Avoid React render warning in test (#15)
46

57
## [1.1.0] - 2020-02-24
68
### Changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const CONTEXT_LISTENERS = (
66
);
77

88
const createProvider = (OrigProvider, listeners) => React.memo(({ value, children }) => {
9-
if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test') {
9+
if (process.env.NODE_ENV !== 'production') {
1010
// we use layout effect to eliminate warnings.
1111
// but, this leads tearing with startTransition.
1212
// eslint-disable-next-line react-hooks/rules-of-hooks

0 commit comments

Comments
 (0)