@@ -66,7 +66,7 @@ if (__DEV__) {
66
66
return self;
67
67
}
68
68
69
- var ReactVersion = "19.0.0-www-modern-6b2eae4e ";
69
+ var ReactVersion = "19.0.0-www-modern-210281fd ";
70
70
71
71
var LegacyRoot = 0;
72
72
var ConcurrentRoot = 1;
@@ -16496,30 +16496,27 @@ if (__DEV__) {
16496
16496
didWarnAboutModulePatternComponent[_componentName] = true;
16497
16497
}
16498
16498
}
16499
- }
16499
+ } // Proceed under the assumption that this is a function component
16500
16500
16501
- {
16502
- // Proceed under the assumption that this is a function component
16503
- workInProgress.tag = FunctionComponent;
16501
+ workInProgress.tag = FunctionComponent;
16504
16502
16505
- {
16506
- if (Component.contextTypes) {
16507
- error(
16508
- "%s uses the legacy contextTypes API which was removed in React 19. " +
16509
- "Use React.createContext() with React.useContext() instead.",
16510
- getComponentNameFromType(Component) || "Unknown"
16511
- );
16512
- }
16503
+ {
16504
+ if (Component.contextTypes) {
16505
+ error(
16506
+ "%s uses the legacy contextTypes API which was removed in React 19. " +
16507
+ "Use React.createContext() with React.useContext() instead.",
16508
+ getComponentNameFromType(Component) || "Unknown"
16509
+ );
16513
16510
}
16511
+ }
16514
16512
16515
- reconcileChildren(null, workInProgress, value, renderLanes);
16513
+ reconcileChildren(null, workInProgress, value, renderLanes);
16516
16514
16517
- {
16518
- validateFunctionComponentInDev(workInProgress, Component);
16519
- }
16520
-
16521
- return workInProgress.child;
16515
+ {
16516
+ validateFunctionComponentInDev(workInProgress, Component);
16522
16517
}
16518
+
16519
+ return workInProgress.child;
16523
16520
}
16524
16521
16525
16522
function validateFunctionComponentInDev(workInProgress, Component) {
@@ -16558,33 +16555,33 @@ if (__DEV__) {
16558
16555
}
16559
16556
16560
16557
if (Component.defaultProps !== undefined) {
16561
- var _componentName3 =
16558
+ var _componentName2 =
16562
16559
getComponentNameFromType(Component) || "Unknown";
16563
16560
16564
- if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName3 ]) {
16561
+ if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName2 ]) {
16565
16562
error(
16566
16563
"%s: Support for defaultProps will be removed from function components " +
16567
16564
"in a future major release. Use JavaScript default parameters instead.",
16568
- _componentName3
16565
+ _componentName2
16569
16566
);
16570
16567
16571
- didWarnAboutDefaultPropsOnFunctionComponent[_componentName3 ] = true;
16568
+ didWarnAboutDefaultPropsOnFunctionComponent[_componentName2 ] = true;
16572
16569
}
16573
16570
}
16574
16571
16575
16572
if (typeof Component.getDerivedStateFromProps === "function") {
16576
- var _componentName4 =
16573
+ var _componentName3 =
16577
16574
getComponentNameFromType(Component) || "Unknown";
16578
16575
16579
16576
if (
16580
- !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4 ]
16577
+ !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3 ]
16581
16578
) {
16582
16579
error(
16583
16580
"%s: Function components do not support getDerivedStateFromProps.",
16584
- _componentName4
16581
+ _componentName3
16585
16582
);
16586
16583
16587
- didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4 ] =
16584
+ didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3 ] =
16588
16585
true;
16589
16586
}
16590
16587
}
@@ -16593,16 +16590,16 @@ if (__DEV__) {
16593
16590
typeof Component.contextType === "object" &&
16594
16591
Component.contextType !== null
16595
16592
) {
16596
- var _componentName5 =
16593
+ var _componentName4 =
16597
16594
getComponentNameFromType(Component) || "Unknown";
16598
16595
16599
- if (!didWarnAboutContextTypeOnFunctionComponent[_componentName5 ]) {
16596
+ if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4 ]) {
16600
16597
error(
16601
16598
"%s: Function components do not support contextType.",
16602
- _componentName5
16599
+ _componentName4
16603
16600
);
16604
16601
16605
- didWarnAboutContextTypeOnFunctionComponent[_componentName5 ] = true;
16602
+ didWarnAboutContextTypeOnFunctionComponent[_componentName4 ] = true;
16606
16603
}
16607
16604
}
16608
16605
}
0 commit comments