Skip to content

Add enhance update options to documentation. #13020

Closed
@russ3llc

Description

@russ3llc

Describe the problem

When using form enhancement you can return a callback function. The callback function has access to an update function which invokes the default form response behavior. The update function accepts options, but this doesn't seem to be in the Svelte documentation anywhere.

In order to know that you can, e.g. invoke update but not reset the form values (update({ reset: false })), you would have to check out the type hints in your code editor, or find out via 3rd party site. I personally discovered this very useful feature by way of StackOverflow.

Describe the proposed solution

Update the progressive enhancement or enhance reference pages to include a brief description of the update function options.

Importance

nice to have

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions