mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-12 23:57:09 +00:00
Merge pull request #2395 from leptos-rs/int-ax-doc
This commit is contained in:
commit
d72b12524e
1 changed files with 2 additions and 2 deletions
|
@ -87,9 +87,9 @@ impl ResponseParts {
|
||||||
///
|
///
|
||||||
/// If you provide your own handler, you will need to provide `ResponseOptions` via context
|
/// If you provide your own handler, you will need to provide `ResponseOptions` via context
|
||||||
/// yourself if you want to access it via context.
|
/// yourself if you want to access it via context.
|
||||||
/// ```rust
|
/// ```rust,ignore
|
||||||
/// #[server]
|
/// #[server]
|
||||||
/// pub async fn get_opts() -> Result<(),ServerFnError> {
|
/// pub async fn get_opts() -> Result<(), ServerFnError> {
|
||||||
/// let opts = expect_context::<leptos_axum::ResponseOptions>();
|
/// let opts = expect_context::<leptos_axum::ResponseOptions>();
|
||||||
/// Ok(())
|
/// Ok(())
|
||||||
/// }
|
/// }
|
||||||
|
|
Loading…
Reference in a new issue