Skip to content
Discussion options

You must be logged in to vote

This fails -- when?

I would expect it to fail if the client ever calls the server function, because the context isn't provided for server function endpoints (server function endpoints don't call shell when called from the client, because they're not generating an HTML page; use .leptos_routes_with_context to provide it to both HTML pages and server function endpoints)

I might also expect it to fail during route list generation. I forget how exactly the shell function is used in SSG because it's been a long time since I've touched it, but there is a generate_route_list variant that allows you to pass additional context.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mainrs
Comment options

Answer selected by mainrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants