leptos-rs / start-axum-workspace

The Unlicense
48 stars 15 forks source link

Bug: ResponseOptions and Parts not available #24

Open dmgolembiowski opened 3 months ago

dmgolembiowski commented 3 months ago

It's possible the leptos-0.6 migration guide did not include a leptos_axum::file_and_error_handler fallback option at the time (since this template workspace uses an alternative via fileserv.rs), however it is available now in main! 🎊
At the present time, using leptos_0.7 and the new main branch is insufficient because the custom handler in /server/src/fileserv.rs does not provide context (which would have otherwise been available if not for the deleted .route("/api/*fn_name", post(leptos_axum::handler_server_fns)).

I can open a PR for this later.

Related commit: https://github.com/leptos-rs/start-axum-workspace/commit/95e3aeb7cb6dffc5bb4f8245ce6cda09232784ea#commitcomment-145056391

gbj commented 3 months ago

I'm not sure I understand. This template has not been updated for 0.7, at all.

Could you please provide a reproducible example of the issue you are facing, or a clearer sense of the problem and how to reproduce it?