Skip to content

Discrepancy between Tutorial and API docs for Actions #2776

@varholak-peter

Description

@varholak-peter

Description

The Tutorial mentions that destroy function must be present in the object returned from an Action, however, the API docs label the return value of an Action as optional. (Or when an action does return an object the destroy property may be optional as well.)

I believe the preferred solution would be to remove the "must have" from the tutorial instead of enforcing the return value.

Quick links

Tutorial: https://svelte.dev/tutorial/actions
Docs: https://svelte.dev/docs#Actions

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