leptos/server_fn_macro
Gabriel de Perthuis 2c8f46466b
feat: support default values for annotated server_fn arguments with #[server(default)] (#1762)
This allows form submission with checkbox inputs to work.
For example:

    let doit = create_server_action::<DoItSFn>();
    <ActionForm action=doit>
      <input type="checkbox" name="is_good" value="true"/>
      <input type="submit"/>
    </ActionForm>

    #[server(DoItSFn, "/api")]
    pub async fn doit(#[server(default)] is_good: bool) -> Result<(), ServerFnError> {}

If is_good is absent in the request to the server API,
`Default::default()` is used instead.
2023-09-20 20:43:20 -04:00
..
src feat: support default values for annotated server_fn arguments with #[server(default)] (#1762) 2023-09-20 20:43:20 -04:00
Cargo.toml chore: remove (most) syn 1 dependencies (#1670) 2023-09-08 14:46:38 -04:00
Makefile.toml build: run tasks from workpace or member directory (#1339) 2023-07-13 16:46:51 -04:00