-
-
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(data): add provideEntityData and provideEntityDataWithoutEffects #3647
Conversation
✅ Deploy Preview for ngrx-io canceled.Built without sensitive environment variables
|
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.
Thanks a lot Santosh for reopening this PR!
I didn't add TSDoc and tests for the new data APIs yesterday, but it would be good to cover at least the main use cases. If you don't have time, we can add tests in a separate PR. I'd also revert changes from |
Sounds good I need to work on my slides. Should I disable these tests as of now and update once I am back? Will update the standalone-app |
Hey @santoshyadavdev, We don't need to exclude existing |
oops, my bad, really sorry, I am too tired 😂 |
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.
oops, my bad, really sorry, I am too tired 😂
Oh 😅 No worries!
modules/data/spec/entity-services/entity-collection-service.spec.ts
Outdated
Show resolved
Hide resolved
modules/data/spec/entity-services/entity-collection-service.spec.ts
Outdated
Show resolved
Hide resolved
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.
🚀
Changes look good overall. We have an opportunity to change the I propose two options
provideEntityData(config, [withEffects()]) Option 2 would be the default |
Sounds good to me 👍 I'm also not a big fan of |
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.
We can change the signature in a follow-up PR
I can make changes tonight, if you want to wait 😃 |
Thanks Santosh! I think it's ok to go ahead and land this one. @markostanimirovic is going to look at the follow-up PR |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Closes #3529
Does this PR introduce a breaking change?