Skip to content

On result event for form remote function #16572

@DimeloTony

Description

@DimeloTony

Describe the problem

A function that runs when we receive a response/result from a remote function. It’s useful to perform some validation after receiving the result.

Example: If there’s an error, show a toast or some kind of message.

This helps prevent infinite loops for new Svelte developers who might try to use $effect to handle the result.

Image

Describe the proposed solution

formFunction.onResult = (result) => {
console.log(result);
// Do something here
};

Importance

nice to have

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions