-
-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spawn_local panic within generate_route_list using axum #1775
Comments
Are you calling |
Never mind, looking at the stack trace it looks like it's a resource. I'll look into it a bit. These are supposed to be suppressed during route list generation. |
Here's the relevant part of the stacktrace.
i.e., it's the local resource created at |
I believe I had the same issue, trying to do "conditional" routes, and it's working as expected now. Thank you |
Describe the bug
Getting a panic when calling generate_route_list after updating on latest main. Still investigating exact cause
Full stack trace
Leptos Dependencies
No MRE yet: It looks like updates to static site generation 3b864ac is triggering it. Reverting to the commit prior resolves the error.
This sort of makes sense- in the rest of the axum integrations we use the thread pool trick to be able to use LocalKeys. We could probably reuse this trick, or reevaluate whether we want generating a route list to invoke static generation or not.
The text was updated successfully, but these errors were encountered: