Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return the result of the store.dispatch call to work with async actions like redux-thunk #7

Merged
merged 1 commit into from May 25, 2019

Conversation

steve-low
Copy link
Contributor

Returning the result of the store.dispatch call allows callers to wait on the result of async actions, like redux-thunks where the result of the thunk is a Promise. (https://github.com/reduxjs/redux-thunk)

e.g.

methods: {
    ...mapActions('myAction'),
    doThing() {
        const result = await myAction();
    }
}

@alexander-heimbuch
Copy link
Owner

thanks for the contribution! I still working on a different feature and will release this asap :)

@alexander-heimbuch alexander-heimbuch merged commit ae00812 into alexander-heimbuch:master May 25, 2019
@alexander-heimbuch
Copy link
Owner

released in 0.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants