mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
Properly reset ID in streaming
This commit is contained in:
parent
c4eeb4f39f
commit
4a1d16b641
1 changed files with 3 additions and 1 deletions
|
@ -68,6 +68,8 @@ pub fn render_to_stream_with_prefix(
|
|||
view: impl FnOnce(Scope) -> View + 'static,
|
||||
prefix: impl FnOnce(Scope) -> Cow<'static, str> + 'static
|
||||
) -> impl Stream<Item = String> {
|
||||
HydrationCtx::reset_id();
|
||||
|
||||
// create the runtime
|
||||
let runtime = create_runtime();
|
||||
|
||||
|
@ -145,7 +147,7 @@ pub fn render_to_stream_with_prefix(
|
|||
// dispose of Scope and Runtime
|
||||
.chain(futures::stream::once(async move {
|
||||
disposer.dispose();
|
||||
//runtime.dispose();
|
||||
runtime.dispose();
|
||||
Default::default()
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue