@@ -326,7 +326,7 @@ function normalizeMarkupForTextOrAttribute(markup: mixed): string {
326326
327327export function checkForUnmatchedText (
328328 serverText : string ,
329- clientText : string | number ,
329+ clientText : string | number | bigint ,
330330 isConcurrentMode : boolean ,
331331 shouldWarnDev : boolean ,
332332) {
@@ -399,10 +399,12 @@ function setProp(
399399 }
400400 } else if ( typeof value === 'number' || typeof value === 'bigint' ) {
401401 if ( __DEV__ ) {
402+ // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint
402403 validateTextNesting ( '' + value , tag ) ;
403404 }
404405 const canSetTextContent = tag !== 'body' ;
405406 if ( canSetTextContent ) {
407+ // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint
406408 setTextContent ( domElement , '' + value ) ;
407409 }
408410 }
@@ -954,6 +956,7 @@ function setPropOnCustomElement(
954956 if ( typeof value === 'string' ) {
955957 setTextContent ( domElement , value ) ;
956958 } else if ( typeof value === 'number' || typeof value === 'bigint' ) {
959+ // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint
957960 setTextContent ( domElement , '' + value ) ;
958961 }
959962 break ;
@@ -2817,6 +2820,7 @@ export function diffHydratedProperties(
28172820 typeof children === 'number' ||
28182821 typeof children === 'bigint'
28192822 ) {
2823+ // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint
28202824 if ( domElement . textContent !== '' + children ) {
28212825 if ( props . suppressHydrationWarning !== true ) {
28222826 checkForUnmatchedText (
0 commit comments