Fix SSR with new run_scope_undisposed

This commit is contained in:
Greg Johnston 2022-10-17 19:47:01 -04:00
parent 75ba5a4cac
commit ade1376eec
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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)?;