Skip to content

Group actions in state hook return values #528

Closed

Description

@mnxmnz

useBooleanState and useStorageState return multiple tuple entries, while useList, useMap, and useSet group actions in [value, actions]. Use [value, action] for one action and [value, actions] for multiple actions; update types, docs, and tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions