pros:
- 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.
- Debugging will be more convenient, because you can filter actions by state in redux devtools or determine in which state this action exists.
pros:
For example:
In this case, the probability that you will create an action that already exists in another state is reduced.