Commit d460854
Move tail hydration mismatch back to hydration context (facebook#28501)
In facebook#23176 we added a special case in completeWork for SuspenseBoundaries
if they still have trailing children. However, that misses a case
because it doesn't log a recoverable error for the hydration mismatch.
So we get an error that we rerendered.
I think this special case was done to avoid contexts getting out of
sync. I don't know why we didn't just move where the pop happens though
so that's what I did here and let the regular pass throw instead. Seems
to be pass the tests.1 parent 8e68237 commit d460854
File tree
3 files changed
+5
-21
lines changed- packages
- react-dom/src/__tests__
- react-reconciler/src
3 files changed
+5
-21
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
| 541 | + | |
541 | 542 | | |
542 | 543 | | |
543 | 544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
148 | | - | |
149 | 147 | | |
150 | 148 | | |
151 | 149 | | |
| |||
866 | 864 | | |
867 | 865 | | |
868 | 866 | | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | 867 | | |
882 | 868 | | |
883 | 869 | | |
| |||
1337 | 1323 | | |
1338 | 1324 | | |
1339 | 1325 | | |
1340 | | - | |
1341 | 1326 | | |
1342 | 1327 | | |
1343 | 1328 | | |
| |||
1358 | 1343 | | |
1359 | 1344 | | |
1360 | 1345 | | |
| 1346 | + | |
1361 | 1347 | | |
1362 | 1348 | | |
1363 | 1349 | | |
1364 | 1350 | | |
| 1351 | + | |
1365 | 1352 | | |
1366 | 1353 | | |
1367 | 1354 | | |
| |||
1371 | 1358 | | |
1372 | 1359 | | |
1373 | 1360 | | |
| 1361 | + | |
| 1362 | + | |
1374 | 1363 | | |
1375 | 1364 | | |
1376 | 1365 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | 896 | | |
901 | 897 | | |
902 | 898 | | |
| |||
952 | 948 | | |
953 | 949 | | |
954 | 950 | | |
955 | | - | |
956 | | - | |
957 | 951 | | |
0 commit comments