-
-
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(store): add createFeature
#3033
feat(store): add createFeature
#3033
Conversation
Preview docs changes for ac54fb0 at https://previews.ngrx.io/pr3033-ac54fb03/ |
I love this 👏 |
This is great! Now if |
Yep! Then no need for facades haha |
I'm curious. Going to try something out from this branch |
Yep, love seeing the cross inspiration here! |
NgRx Ducks provides self-dispatching Actions: https://co-it.gitbook.io/ngrx-ducks/ngrx-ducks-core/architecture/createduck It also extracts plain action creators: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great, here and there I left some comments and questions.
We should also add a test to make sure that we can use createFeature
to create feature here.
4b93508
to
ac54fb0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👏👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @markostanimirovic! |
😅 The docs weren't published. I'll push them up tomorrow |
I am missing some best practice guidance for createFuture. How are "sub" states to be handled, similar https://ultimatecourses.com/blog/ngrx-store-understanding-state-selectors, see Feature state selectors, e.g. products -> pizzas -> entities.
|
@markostanimirovic
Maybe your comment should be added to the documentation. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Closes #2974
What is the behavior?
Example 1:
Example 2: (with application state)
Does this PR introduce a breaking change?