StoreModel#waitFor doesn't work
dangnm opened this issue · 0 comments
dangnm commented
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?