Skip to content

Commit

Permalink
Avoid replaying SelectiveHydrationException in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tyao1 committed Dec 2, 2022
1 parent 7fab379 commit c8a573b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-reconciler/src/ReactFiberWorkLoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -3771,6 +3771,7 @@ if (__DEV__ && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
if (
didSuspendOrErrorWhileHydratingDEV() ||
originalError === SuspenseException ||
originalError === SelectiveHydrationException ||
(originalError !== null &&
typeof originalError === 'object' &&
typeof originalError.then === 'function')
Expand Down

0 comments on commit c8a573b

Please sign in to comment.