goatslacker / goatslacker/alt

StoreModel#waitFor doesn't work

Open
#685 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.4k
Forks
312
PR merge metrics
No merged PRs in 30d

Description

I have the following CoffeeScript code snippet
`
class AStore
@displayName: 'AStore'

onTest: (props) ->
@waitFor(Myapp.BStore.dispatchToken)
console.log("AStore action test")
...
class BStore
@displayName: 'BStore'

onTest: (props) ->
console.log("BStore action test")
...
class AActions
...
class BActions
...
`
When I try to call AActions.test() , it just prints the message "AStore action test" without waiting BStore actions called. How can I force AActions.test() to wait for BActions.test() is excuted completely?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.