Skip to content

Remote Functions: Add submitting or pending to command and form functions #14080

@jjones315

Description

@jjones315

Describe the problem

This was the first feature I noticed “missing” while moving some @tanstack/query mutations over. I use these almost everywhere to for example disable the submit button to help prevent double submissions.

Describe the proposed solution

Add a property to indicate if a command or form function are currently submitting or in the enhance handler in the case of form.

Alternatives considered

Setting state can work, but on a page with many commands or forms it can be cumbersome to create and name so many fields for something that is used so frequently.

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions