Commit 504a451
committed
ReactFiberHydrationWarning in react-reconciler
New functions in ReactFiberHostConfig:
```
getHostInstanceDisplayName,
getHostInstanceProps,
isHydratableInstance,
isTextInstance,
getTextInstanceText,
compareTextForHydrationWarning,
comparePropValueForHydrationWarning,
```
Moved from ReactDOMComponent to ReactFiberHydrationWarning:
```
warnForUnmatchedText, // removed
warnForDeletedHydratableElement, // renamed to warnForDeletedHydratableInstance
warnForDeletedHydratableText, // removed
warnForInsertedHydratedElement, // renamed to warnForInsertedHydratedInstance
warnForInsertedHydratedText, // renamed to warnForInsertedHydratedTextInstance
warnForTextDifference,
warnForPropDifference,
warnForExtraAttributes,
SUPPRESS_HYDRATION_WARNING,
didWarnInvalidHydration,
```
The warnFor... functions are no longer exported and
are an implementation detail of ReactFiberHydrationWarning.
Renamed in ReactDOMComponent, ReactDOMHostConfig:
```
normalizeMarkupForTextOrAttribute -> normalizeHTMLTextOrAttributeValue
normalizeHTML -> normalizeHTMLMarkup
```
Moved from ReactFiberHostConfig to ReactFiberHydrationWarning:
```
didNotMatchHydratedContainerTextInstance,
didNotMatchHydratedTextInstance,
didNotHydrateContainerInstance,
didNotHydrateInstance,
didNotFindHydratableContainerInstance,
didNotFindHydratableContainerTextInstance,
didNotFindHydratableContainerSuspenseInstance,
didNotFindHydratableInstance,
didNotFindHydratableTextInstance,
didNotFindHydratableSuspenseInstance,
```
New functions exported from ReactFiberHydrationWarning:
```
findHydrationWarningHostInstanceIndex,
didNotMatchHydratedChildrenPropValue,
didNotMatchHydratedPropValue,
didNotMatchHydratedPropsHostInstanceHasExtraAttributes,
```1 parent 436f30c commit 504a451
File tree
11 files changed
+1417
-441
lines changed- packages
- react-dom/src
- __tests__
- client
- react-native-renderer/src
- react-reconciler/src
- forks
- react-test-renderer/src
11 files changed
+1417
-441
lines changedLines changed: 70 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1003 | 1003 | | |
1004 | 1004 | | |
1005 | 1005 | | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
1006 | 1076 | | |
Large diffs are not rendered by default.
0 commit comments