-
-
Notifications
You must be signed in to change notification settings - Fork 207
feat(template): make rxFor stable #1369
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
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 21f2bea. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 4 targetsSent with 💌 from NxCloud. |
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.
Could you explain to me the idea of tracking by "context" where you pass the component instance reference to the trackBy
fn, I'm not sure to understand the idea.
It would be nice to provide an SSR test to be sure rxFor is rendering on the server.
libs/template/experimental/for/src/lib/tests/for.directive.strategy.spec.ts
Outdated
Show resolved
Hide resolved
libs/template/experimental/for/src/lib/tests/for.directive.strategy.spec.ts
Outdated
Show resolved
Hide resolved
acutally, this is again copied from https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_for_spec.ts. I just wanted to be very sure our implementation passes all the tests the original ngFor passes as well |
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.
Nice to see this going to production! 🙌🏼
Just took a very quick look and saw the following:
Description
this PR makes sure
rxFor
is in a state where it can be considered as stable and moved from the experimental package.I've implemented a test suite which basically resembles the original ngFor spec.
rxFor
totemplate/
rxFor
acts as drop-in replacement forngFor
ngFor
behaviorrxFor
specific API