Skip to content

How to chain async actions? #1676

Closed
Closed
@ar53n

Description

@ar53n

Hello, I have been studying Redux and faced with an interesting problem? need to make a chain of asynchronous requests from other Actions
1-getUser()
2-getPost()

I have 2 solution execute after sign in user .then(dispatch({type:GET_POST_REQUEST}))
or write function in middleWare.

How it to do correctly?

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