-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
Copy pathreact-dom-17+17.0.2.patch
40 lines (38 loc) · 1.75 KB
/
react-dom-17+17.0.2.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
diff --git a/node_modules/react-dom-17/cjs/react-dom.development.js b/node_modules/react-dom-17/cjs/react-dom.development.js
index f0b9ee7..b02eb8e 100644
--- a/node_modules/react-dom-17/cjs/react-dom.development.js
+++ b/node_modules/react-dom-17/cjs/react-dom.development.js
@@ -15728,7 +15728,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
function mountEffect(create, deps) {
{
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
- if ('undefined' !== typeof jest) {
+ if (globalThis.IS_REACT_ACT_ENVIRONMENT) {
warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
}
}
@@ -15739,7 +15739,7 @@ function mountEffect(create, deps) {
function updateEffect(create, deps) {
{
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
- if ('undefined' !== typeof jest) {
+ if (globalThis.IS_REACT_ACT_ENVIRONMENT) {
warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
}
}
@@ -16130,7 +16130,7 @@ function dispatchAction(fiber, queue, action) {
{
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
- if ('undefined' !== typeof jest) {
+ if (globalThis.IS_REACT_ACT_ENVIRONMENT) {
warnIfNotScopedWithMatchingAct(fiber);
warnIfNotCurrentlyActingUpdatesInDev(fiber);
}
@@ -25436,7 +25436,7 @@ function updateContainer(element, container, parentComponent, callback) {
{
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
- if ('undefined' !== typeof jest) {
+ if (globalThis.IS_REACT_ACT_ENVIRONMENT) {
warnIfUnmockedScheduler(current$1);
warnIfNotScopedWithMatchingAct(current$1);
}