Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Add new rehydrate option to renderComponent clientside api #313

Merged
merged 1 commit into from
Oct 8, 2020

Conversation

chiragpat
Copy link
Contributor

Why
When rehydrating the server producing output containing the block stacks. On the client side we need to use the rehydrationBuilder instead of the clientBuilder so that we don't replace/append to the existing markup produced from the server

How

  • Add new top level rehydrate option to the renderComponent API
  • Use rehydrationBuilder when that option is set

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants