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 8, 2022
1 parent 2072b9d commit 87c5c9a
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 @@ -3774,6 +3774,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 87c5c9a

Please sign in to comment.