You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Fizz] Fix children rendering in custom elements with enableCustomElementPropertySupport (#27511)
The `enableCustomElementPropertySupport` flag changes React's handling
of custom elements in a way that is more useful that just treating every
prop as an attribute. However when server rendering we have no choice
but to serialize props as attributes. When this flag is on and React
supports more prop types on the client like functions and objects the
server implementation needs to be a bit more naunced in how it renders
these components. With this flag on `false`, function, and object props
are omitted entirely and `true` is normalized to `""`. There was a bug
however in the implementation which caused children more complex than a
single string to be omitted because it matched the object type filter.
This change reorganizes the code a bit to put these filters in the
default prop handline case, leaving children, style, and innerHTML to be
handled via normal logic.
fixes: #27286
DiffTrain build for commit bb77852.
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24770,7 +24770,7 @@ function createFiberRoot(
24770
24770
return root;
24771
24771
}
24772
24772
24773
-
var ReactVersion = "18.3.0-canary-ea8a8619c-20231012";
24773
+
var ReactVersion = "18.3.0-canary-bb778528d-20231012";
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8968,7 +8968,7 @@ var devToolsConfig$jscomp$inline_1008 = {
8968
8968
throwError("TestRenderer does not support findFiberByHostInstance()");
8969
8969
},
8970
8970
bundleType: 0,
8971
-
version: "18.3.0-canary-ea8a8619c-20231012",
8971
+
version: "18.3.0-canary-bb778528d-20231012",
8972
8972
rendererPackageName: "react-test-renderer"
8973
8973
};
8974
8974
varinternals$jscomp$inline_1201={
@@ -8999,7 +8999,7 @@ var internals$jscomp$inline_1201 = {
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9394,7 +9394,7 @@ var devToolsConfig$jscomp$inline_1050 = {
9394
9394
throwError("TestRenderer does not support findFiberByHostInstance()");
9395
9395
},
9396
9396
bundleType: 0,
9397
-
version: "18.3.0-canary-ea8a8619c-20231012",
9397
+
version: "18.3.0-canary-bb778528d-20231012",
9398
9398
rendererPackageName: "react-test-renderer"
9399
9399
};
9400
9400
varinternals$jscomp$inline_1242={
@@ -9425,7 +9425,7 @@ var internals$jscomp$inline_1242 = {
0 commit comments