-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat(router): router actions as ActionCreators #2206
Comments
OK, I will have a look on this tonight (if I don't forget), but I'm happy to help out on this one! |
Hi @timdeschryver and @maartentibau, did one of you guys already worked on this? My understanding of this ticket is that we would like to have migrated the default actions based on the new |
I'm not working on this. We want to have both options (action type enum and action creator), familiar to #2219. |
Okay, if @maartentibau doesn't mind I can have a look at this issue. |
@Jefiozie I don't mind if you have a look. I didn't really have a lot of time to look at it. But I'm certainly willing to help out if need be. Sadly ... the time I can spend on OSS is very very limited these days, but since I'm using the creator methods now on a very frequent base I thought I could help out. But again... finding the time to do it is the hardest part. So sure... feel free to start on it, thx m8!! |
So I added a draft PR, should we update the docs (https://ngrx.io/guide/router-store/actions) as well? |
I think we should, we're going to make the creator functions the default in v9.x so I think it will be helpful to add it to the docs. I think we should update the docs with the emphasis on the creator function, and add a note that the action types can still be used. |
I missed your comment for some reason, I will make some changes to the docs in upcoming days. Did you have some time to see if the PR is what you expected? |
If we're using the creator functions for reducers and effects we aren't able to use the router actions.
I'm suggesting that we'd also create these router actions as
ActionCreators
, for example:Describe any alternatives/workarounds you're currently using
We can create the
ActionCreators
in our project.Other information:
If accepted, I would be willing to submit a PR for this feature
[x] Yes (Assistance is provided if you need help submitting a pull request)
[ ] No
The text was updated successfully, but these errors were encountered: