Skip to content

setState should provide "prevState" arg #14

@jackmellis

Description

@jackmellis

It should also be "latest" so that if you call it twice the second call gets the first calls value

setState(prev => prev + 1)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions