Replies: 3 comments
-
👋 I think you pinged the wrong Tim 😅 |
Beta Was this translation helpful? Give feedback.
-
That would be me 😉 |
Beta Was this translation helpful? Give feedback.
-
Some implementation notes from my side: The decorator @markwhitfeld would you be open for a pull request or would you see this more in an extra module? |
Beta Was this translation helpful? Give feedback.
-
Relevant Package
This feature request is for @ngxs/store
Description
Be able to hook onto a specific lifecycle event of an Action
Describe the problem you are trying to solve
Right now, if you need to do something only when action is succesful or error or dispatched, you need to inject
Actions
stream and filter lifecyclye usingofAction
operartors. This is not very straighforward and requires multiple LOCs to get it setup.Describe the solution you'd like
A possible solution is to be able to filter the lifecycle in the
@Action
decorator, so you can hook onto the specific event you needDescribe alternatives you've considered
There's been some discussion on slack, and here's a gist @timdeschryver proposed
Beta Was this translation helpful? Give feedback.
All reactions