mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
Fix SSR with new run_scope_undisposed
This commit is contained in:
parent
75ba5a4cac
commit
ade1376eec
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ use crate::Element;
|
|||
use futures::{stream::FuturesUnordered, Stream, StreamExt};
|
||||
|
||||
pub fn render_to_stream(view: impl Fn(Scope) -> Element + 'static) -> impl Stream<Item = String> {
|
||||
let ((shell, pending_resources, pending_fragments, serializers), disposer) =
|
||||
let ((shell, pending_resources, pending_fragments, serializers), _, disposer) =
|
||||
run_scope_undisposed({
|
||||
move |cx| {
|
||||
// the actual app body/template code
|
||||
|
|
|
@ -190,7 +190,7 @@ impl std::fmt::Debug for Loader {
|
|||
|
||||
#[cfg(feature = "ssr")]
|
||||
pub async fn loader_to_json(view: impl Fn(Scope) -> String + 'static) -> Option<String> {
|
||||
let (data, disposer) = run_scope_undisposed(move |cx| async move {
|
||||
let (data, _, disposer) = run_scope_undisposed(move |cx| async move {
|
||||
let _shell = view(cx);
|
||||
|
||||
let mut route = use_context::<crate::RouteContext>(cx)?;
|
||||
|
|
Loading…
Reference in a new issue