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

StoreModel#waitFor doesn't work #685

Open
dangnm opened this issue Sep 26, 2016 · 0 comments
Open

StoreModel#waitFor doesn't work #685

dangnm opened this issue Sep 26, 2016 · 0 comments

Comments

@dangnm
Copy link

dangnm commented Sep 26, 2016

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?

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

No branches or pull requests

1 participant