Fix hydration of suspense fragments that contain text nodes (#3287)
* Fix hydration of suspense fragments that contain text nodes * fix release builds * disable link deduplication * restore meta tag deduplication * Add a test for the failed hydration case * make changes to the document trait non-breaking * remove info log from server future hook * restore default implementation - this was also a breaking change * fix semver breakage * clean up server_future * Cleanup unused code * fix clippy --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
1 parent
57d637184f
commit
d41ab3a756
33 files changed
+644
-222
No files matched your search
@@ -13,27 +13,26 @@ pub(crate) fn RootScopeWrapper(props: RootProps<VComponent>) -> Element {
|
||||
None,
|
||||
TEMPLATE,
|
||||
Box::new([DynamicNode::Component(
|
||||
fc_to_builder(ErrorBoundary)
|
||||
.children(Element::Ok(VNode::new(
|
||||
fc_to_builder(SuspenseBoundary)
|
||||
.fallback(|_| Element::Ok(VNode::placeholder()))
|
||||
.children(Ok(VNode::new(
|
||||
None,
|
||||
TEMPLATE,
|
||||
Box::new([DynamicNode::Component({
|
||||
#[allow(unused_imports)]
|
||||
fc_to_builder(SuspenseBoundary)
|
||||
.fallback(|_| Element::Ok(VNode::placeholder()))
|
||||
.children(Ok(VNode::new(
|
||||
fc_to_builder(ErrorBoundary)
|
||||
.children(Element::Ok(VNode::new(
|
||||
None,
|
||||
TEMPLATE,
|
||||
Box::new([DynamicNode::Component(props.0)]),
|
||||
Box::new([]),
|
||||
)))
|
||||
.build()
|
||||
.into_vcomponent(SuspenseBoundary)
|
||||
.into_vcomponent(ErrorBoundary)
|
||||
})]),
|
||||
Box::new([]),
|
||||
)))
|
||||
.build()
|
||||
.into_vcomponent(ErrorBoundary),
|
||||
.into_vcomponent(SuspenseBoundary),
|
||||
)]),
|
||||
Box::new([]),
|
||||
))
|
||||
|
||||
Reference in new issue
Block a user