Repository navigation
[labs/react & labs/ssr-react] Coordinate props for server rendering and hydration - #3885
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 088137a The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
📊 Tachometer Benchmark ResultsSummarynop-update
render
update
update-reflect
Resultslit-element-list
render
update
update-reflect
lit-html-kitchen-sink
render
update
nop-update
lit-html-repeat
render
update
lit-html-template-heavy
render
update
reactive-element-list
render
update
update-reflect
|
AndrewJakubowicz
approved these changes
May 9, 2023
AndrewJakubowicz
left a comment
Contributor
There was a problem hiding this comment.
LGTM from a non domain understanding perspective. I learnt a lot reading through this! An amazingly elegant solution to a thorny issue!
- Fix typos - Expand on nextjs section - Remove commented out repeat of the table content
AndrewJakubowicz
approved these changes
May 16, 2023
AndrewJakubowicz
left a comment
Contributor
There was a problem hiding this comment.
Great! No comments on the code portion, and only minor nits in the docs portion.
- Fix wording and typos
Member
Author
|
@AndrewJakubowicz Thank you for the excellent reviews. Eagle eyes, you have! |
This was referenced May 24, 2023
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3418
Recommend reviewing commit by commit.
labs/reactnow has a Node build. In Node mode, it'll check to see ifReact.createElementhas been patched by checking its.name === 'litPatchedCreateElement', and if it has element properties that needs to be set, passes them in a special prop bag_$litProps$which is a property that should not be minified.labs/ssr-reactduring SSR will now set all React props it gets as attributes (breaking change), and only set as properties those that were provided via above special bag. It also addsdefer-hydrationattribute to host element if any properties were set this way.labs/reactwrapper on the client will removedefer-hydrationattribute after setting props on the element in the wrapper component'scomponentDidMountlifecycle.