Skip to content

Commit

Permalink
Merge branch 'hydration-3' of https://github.com/futursolo/yew into h…
Browse files Browse the repository at this point in the history
…ydration-3
  • Loading branch information
futursolo committed Apr 1, 2022
2 parents 95889da + 6cb88c9 commit 6d4c364
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/yew/src/dom_bundle/bnode.rs
Expand Up @@ -266,11 +266,11 @@ mod feat_hydration {
}
// You cannot hydrate a VRef.
VNode::VRef(_) => {
panic!("VRef is not hydratable. Try move it to a component mounted after an effect.")
panic!("VRef is not hydratable. Try moving it to a component mounted after an effect.")
}
// You cannot hydrate a VPortal.
VNode::VPortal(_) => {
panic!("VPortal is not hydratable. Try to create your portal by delaying it with use_effect.")
panic!("VPortal is not hydratable. Try creating your portal by delaying it with use_effect.")
}
VNode::VSuspense(vsuspense) => {
let (node_ref, suspense) =
Expand Down
2 changes: 1 addition & 1 deletion website/docs/advanced-topics/server-side-rendering.md
Expand Up @@ -159,7 +159,7 @@ them into an `use_effect` hook.

Whilst it's possible to use Struct Components with server-side rendering in
hydration, the components will be created in a different order than they
are directly rendered on the client-side. The render function will be called
are directly rendered on the client-side. The view function will be called
multiple times before the rendered function will be called and the
component will start receiving messages immediately after the `view()`
function is called after the first time. At that time, the DOM may not
Expand Down

0 comments on commit 6d4c364

Please sign in to comment.