Skip to content

Add a prefix to actions according to the state name #1148

Description

@a-astrouski

pros:

  1. Unique action name for actions in another state.

For example:

{type: "friends/GET_USERS"}
{type: "users/GET_USERS"}
{type: "suggestedUsers/GET_USERS"}
{type: "guests/GET_USERS"}

In this case, the probability that you will create an action that already exists in another state is reduced.

  1. Debugging will be more convenient, because you can filter actions by state in redux devtools or determine in which state this action exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions