Skip to content

Commit 56acc51

Browse files
committed
Also add check to HostComponent
1 parent 9dde0e7 commit 56acc51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-reconciler/src/ReactFiberHydrationContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ function prepareToHydrateHostTextInstance(fiber: Fiber): boolean {
756756
isConcurrentMode,
757757
shouldWarnIfMismatchDev,
758758
);
759-
if (isConcurrentMode) {
759+
if (isConcurrentMode && enableClientRenderFallbackOnTextMismatch) {
760760
// In concurrent mode we never update the mismatched text,
761761
// even if the error was ignored.
762762
return false;

0 commit comments

Comments
 (0)