fix: correct owner for HTML rendering in FlatRoutes

This commit is contained in:
Greg Johnston 2024-06-10 06:32:25 -04:00
parent 7ecfbd9109
commit c3656416a2

View file

@ -526,7 +526,7 @@ where
RouteList::register(RouteList::from(routes));
} else {
let (owner, view) = self.choose_ssr();
view.to_html_with_buf(buf, position);
owner.with(|| view.to_html_with_buf(buf, position));
drop(owner);
}
}
@ -539,7 +539,9 @@ where
Self: Sized,
{
let (owner, view) = self.choose_ssr();
view.to_html_async_with_buf::<OUT_OF_ORDER>(buf, position);
owner.with(|| {
view.to_html_async_with_buf::<OUT_OF_ORDER>(buf, position)
});
drop(owner);
}