-
Notifications
You must be signed in to change notification settings - Fork 404
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
🚀[FEATURE]: Action status stream listener decorators #646
Comments
I like the concept but the tricky thing is that dispatching the action is a multicast. I could foresee a syntax like this: |
Ah i didn't see that the Yea i would rather use the ngxs built in action statuses than have to dispatch success and failure actions for every request. On a side note, do you recommend using the patter of dispatching success and failure actions as a result of a request? eg. ReadReport = '[Report] read report';
ReadReportSuccess = '[Report] read report success';
ReadReportFailure = '[Report] read report failure'; |
@futbotism https://github.com/ngxs-labs/emitter#lifecycle what do you think about the simplified use of the actions |
I did have a look at this pattern, and the simplification looks appealing, but i'm reluctant to move away from redux currently |
@arturovt I think we update example into documentation |
Duplicate #488 |
Great library, im really finding ngxs's clean and straightforward approach a joy to write with
I'm submitting a...
Current behavior
As far as i know this is the only way to subscribe to an action status
Expected behavior
It would be neat if we could do this
This would reduce the boilerplate for traditional actions declarations and allows us to hook into the ngxs action stream more easily.
The text was updated successfully, but these errors were encountered: