Skip to content

Commit

Permalink
Don't warn about concurrent provider renders if we finished rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed May 12, 2022
1 parent 412dab4 commit 0399504
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-reconciler/src/ReactFiberNewContext.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export function popProvider(
} else {
context._currentValue = currentValue;
}
context._currentRenderer = null;
} else {
if (
enableServerContext &&
Expand All @@ -150,6 +151,7 @@ export function popProvider(
} else {
context._currentValue2 = currentValue;
}
context._currentRenderer2 = null;
}
}

Expand Down
2 changes: 2 additions & 0 deletions packages/react-reconciler/src/ReactFiberNewContext.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export function popProvider(
} else {
context._currentValue = currentValue;
}
context._currentRenderer = null;
} else {
if (
enableServerContext &&
Expand All @@ -150,6 +151,7 @@ export function popProvider(
} else {
context._currentValue2 = currentValue;
}
context._currentRenderer2 = null;
}
}

Expand Down

0 comments on commit 0399504

Please sign in to comment.