-
Notifications
You must be signed in to change notification settings - Fork 47k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change hydration warning index algorithm to use
.return
pointers, n…
…ot stack The stack was required to track where to return after child siblings traversal. The `fiber.return` pointers were made for that purpose, it's safe to overwrite them because they are only used to traverse the fiber tree, and their values outside the traversal functions are not relied upon. One test fails for yet unknown reason, the text node is inserted too early: ``` ● ReactMount › should warn when hydrate inserts a text node after matching elements (insertion diff) Error: Unexpected warning recorded: - Expected + Received Warning: Expected server HTML to contain a matching text node for {'SSRMismatchTest client text'} in <div>. <div data-reactroot=""> <div data-ssr-mismatch-padding-before="1"><span></span></div> <div data-ssr-mismatch-padding-before="2"></div> + + {'SSRMismatchTest client text'} <div data-ssr-mismatch-padding-before="3"></div> <div data-ssr-mismatch-padding-before="4"></div> <div data-ssr-mismatch-padding-before="5"></div> <div data-ssr-mismatch-padding-before="6"></div> <div data-ssr-mismatch-padding-before="7"></div> <div data-ssr-mismatch-padding-before="8"></div> <div data-ssr-mismatch-padding-before="9"></div> <div data-ssr-mismatch-padding-before="10"></div> <div data-ssr-mismatch-padding-before="11"></div> <div data-ssr-mismatch-padding-before="12"></div> <div data-ssr-mismatch-padding-before="13"></div> - + {'SSRMismatchTest client text'} </div> in div (at **) ```
- Loading branch information
1 parent
221bc1f
commit 1a15f08
Showing
2 changed files
with
49 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters