Replies: 1 comment
-
By the time this finishes running spawn_local(async move {
if let Err(why) = fetch_and_set_data(&guild_id, set_roles, set_channels).await {
log!("Error fetching data: {why:#?}")
}
}); and tries to set the data, the entire page has already been rendered and sent to the client and has been thrown away. If you're trying to load some async data to use in server rendering, you should be using resources and Suspense. Here's the relevant section of the docs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi, I've been trying to make a Web Dashboard for my Discord Bot, so I need to get data from the Discord API for some signals. But for some reason when reloading my path localhost:3000/dashboard/<guild_id> it returns a panic.
Panic Backtrace
My Component
how can I set the signals without having this panic? i'm kind of new with Leptos FullStack
Beta Was this translation helpful? Give feedback.
All reactions