Skip to content
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

In Axum Integration Remove unwrap() from redirect function #513

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

Indrazar
Copy link
Contributor

The motivation is to allow users to remove additional boilerplate of ensuring that there is a ResponseOptions present before calling leptos_axum::redirect().

ResponseOptions do not exist during startup of the server when leptos_axum::generate_route_list() is called.
During the route building phase the Response does not need to be updated since it does not exist and the function can return immediately without a panic.

@gbj gbj merged commit 81d6689 into leptos-rs:main Feb 13, 2023
fundon added a commit to fundon/leptos that referenced this pull request Feb 14, 2023
* main:
  Reexport `web-sys` event types in `leptos::ev` to make it easier to type handlers (leptos-rs#521)
  fix: correct namespace for `Unit` in empty views (closes leptos-rs#518) (leptos-rs#520)
  leptos_dom erros.rs remove<E>() does not need to be generic. (leptos-rs#516)
  `0.2.0-alpha` (leptos-rs#515)
  remove `.unwrap()` from `redirect` in Actix integration (leptos-rs#514)
  do not unwrap use_context in integrations axum redirect (leptos-rs#513)
  CI: fix Wasm testing (leptos-rs#511)
  fix: SSR export in Wasm mode (leptos-rs#512)
  fix: import in `leptos_dom` and add Wasm build to CI for regressions (leptos-rs#510)
  Typos and a small cleanup (leptos-rs#509)
  change: reorganize module exports and reexports (leptos-rs#503)
  Add docs on testing (closes leptos-rs#489) (leptos-rs#508)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants