Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: provide custom state in
file_and_error_handler
(#3408)
The `file_and_error_handler` provided by leptos_axum does not provide the app's custom state in the context. This means that when the fallback handler tries to render the app, the app will not be able to access the custom state (and will panic if it uses `expect_context`). The handle defined by `file_and_error_handler` has access to the custom state from Axum, so we can pass the custom state from Axum into the Leptos handler using the `additional_context` parameter of `handle_response_inner`.
- Loading branch information