Skip to content

fix(angular-query): refresh injectQueries results after query list changes#10709

Open
raashish1601 wants to merge 1 commit into
TanStack:mainfrom
raashish1601:codex/fix-angular-inject-queries-reactive-options
Open

fix(angular-query): refresh injectQueries results after query list changes#10709
raashish1601 wants to merge 1 commit into
TanStack:mainfrom
raashish1601:codex/fix-angular-inject-queries-reactive-options

Conversation

@raashish1601
Copy link
Copy Markdown

@raashish1601 raashish1601 commented May 14, 2026

Summary

Fixes #8704.

When the injectQueries query list changes after subscriber results exist, the subscriber result can mask the new optimistic result. This clears the subscriber snapshot whenever the observer query set is updated, allowing the latest query list to be reflected immediately.

Validation

  • corepack pnpm exec vitest run src/__tests__/inject-queries.test.ts from packages/angular-query-experimental (5 tests pass)
  • git diff --check origin/main...HEAD

Windows checkout limitations:

  • corepack pnpm test:eslint fails before checking this change because tracked config symlinks are materialized as plain text in this checkout (core.symlinks=false), and Windows denied creating real symlinks.
  • corepack pnpm test:types:tscurrent fails on those same materialized symlink config files.
  • corepack pnpm --filter @tanstack/query-core build fails for the same root.tsup.config.js symlink materialization, so the Angular package build cannot be completed locally here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Angular: fix injectQueries

1 participant