Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
  • Loading branch information
benpptung committed May 9, 2018
commit 887cd7735d846979f53baaabc78f598cd482beb0
4 changes: 2 additions & 2 deletions text/0000-ssrReconciliation.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ render() {

In the above code, I demonstrate that I have to intentionally render a wrong height initially in the browser so I can update it in the second run, or the DOM will keep inconsistent with the vDOM.

This is because if the 2 renderings keep unchanged in vDOM, React won't update the DOM. 2 pass rendering to patch up the mismatches comes with some drawbacks:
This is because if the 2 renderings keep unchanged in vDOM, React won't update the DOM. Two pass rendering to patch up the mismatches comes with some drawbacks:

1. Introduce unnecessary 2nd rendering

Expand All @@ -79,7 +79,7 @@ Design a `ssrReconciliation={true}` attribute, or something like that, e.g. ssrP

# Drawbacks

Increased validating cost, and the developer might overuse this to prevent any mismatch.
Increased validating cost during hydration, and the developer might overuse this to prevent any mismatch in the future.

# Alternatives

Expand Down