-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix(angular-query): fix error NG0600 on Angular v16-v18 #8419
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 36f29b5. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 2 targetsSent with 💌 from NxCloud. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8419 +/- ##
===========================================
+ Coverage 46.21% 88.61% +42.40%
===========================================
Files 198 16 -182
Lines 7509 281 -7228
Branches 1712 43 -1669
===========================================
- Hits 3470 249 -3221
+ Misses 3664 31 -3633
+ Partials 375 1 -374
|
}) | ||
}, | ||
{ | ||
// Set allowSignalWrites to support Angular < v19 | ||
allowSignalWrites: true, |
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.
@arnoud-dv
This will log a warning on Angular 19
. You should check Angular version before setting this config.
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.
Didn't expect a warning message for a noop 🤦♂️
Thanks for letting me know.
Effect
onCleanup
sets a signal which throws an error on Angular < v19 unlessallowSignalWrites
is set.