Skip to content

Commit

Permalink
Clarify loading data for blog comments on the SSR modes page (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
yasutakekazu authored Apr 5, 2024
1 parent 06c637a commit 3a75fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ssr/23_ssr_modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ With blocking resources, I can do something like this:
#[component]
pub fn BlogPost() -> impl IntoView {
let post_data = create_blocking_resource(/* load blog post */);
let comment_data = create_resource(/* load blog post */);
let comments_data = create_resource(/* load blog comments */);
view! {
<Suspense fallback=|| ()>
{move || {
Expand All @@ -128,7 +128,7 @@ pub fn BlogPost() -> impl IntoView {
}}
</Suspense>
<Suspense fallback=|| "Loading comments...">
/* render comment data here */
/* render comments data here */
</Suspense>
}
}
Expand Down

0 comments on commit 3a75fa7

Please sign in to comment.