Skip to content

Svelte 5: Put unstate on $state rune? #10421

Closed
@brunnerh

Description

@brunnerh

Describe the problem

Since unstate is linked to $state, it might make sense to make it a function on $state.
unstate is also a bit of an odd/non-word.

Describe the proposed solution

Not sure about the name, maybe one of

$state.remove / $state.removed
$state.clear / $state.cleared
$state.off

Importance

nice to have

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions