mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: correct owner for HTML rendering in FlatRoutes
This commit is contained in:
parent
7ecfbd9109
commit
c3656416a2
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue