Skip to content

subscribe API with state as an argument #303

@staltz

Description

@staltz

Why

store.subscribe(() => console.log(store.getState()));

and not

store.subscribe(state => console.log(state));

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiscussionA status update or open-ended community conversation.Won't FixThis will not be worked on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions