Repository navigation
test(angular-query/inject-query): restore test for 'enabled' signal turning false and back to true - #12731
test(angular-query/inject-query): restore test for 'enabled' signal turning false and back to true#12731sukvvon wants to merge 1 commit into
Conversation
…urning false and back to true
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
|
View your CI Pipeline Execution ↗ for commit 2220b38
☁️ Nx Cloud last updated this comment at |
size-limit report 📦
|
🚀 Changeset Version Preview2 package(s) bumped directly, 24 bumped as dependents. 🟩 Patch bumps
|
🎯 Changes
Restores the
injectQuerytestshould not fetch while the enabled signal is false, and fetch again once it is truthy, which was dropped whenangular-query-experimentalbecameangular-query.The current tests only cover
enabledgoing fromfalsetotrue. This test covers turning a fetched query off: whileenabledisfalse, changing thequeryKeydoes not callqueryFnandisFetching()staysfalse; whenenabledbecomestrueagain, the query fetches for the new key.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit