Skip to content
Source
Sign inSign up
TanStack/query

Angular +19, query hydration, SSR example, devtools in separate package #10340

Closedbenjavicente(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/10340/headopened View on GitHub

🎯 Changes

This is a continuation of https://github.com/TanStack/query/pull/9986 (which is a continuation of https://github.com/TanStack/query/pull/9893).

This is not intended to be in a reliable state, but can be used as a reference for other PRs for angular. I have not reviewed and cleanup all of the changes yet to have them ready for a release/merge, but I can do it if needed. I used AI mainly for refractors and examples.

Besides updating the docs and adding a couple of examples, this PR adds:

  • Hydration helpers with withHydration and provideServerTanStackQueryHydration.
  • A separate package for devtools, aligning the behaviour to the rest of the packages (the idea of only adding angular- prefixed packages instead of needing to install the core directly).
  • Proper angular testing via analog vite plugin.
  • Remove deprecated apis, like provideAngularQuery
  • Update some remaining <19 features, like using provideEnvironmentInitializer
  • Persister SSR support

I published the packages in my own scope to be used to experiment with them before getting similar changes in main here:

  • @benjavicente/angular-query-experimental
  • @benjavicente/angular-query-devtools
  • @benjavicente/angular-query-persist-client

I am happy to help getting the package out of experimental 👀

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm run test:pr.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).
    1. Important

      Review skipped

      Draft detected.

      Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: defaults

      Review profile: CHILL

      Plan: Pro

      Run ID: 28629e0b-5967-4a87-9fe7-52843cd85b7d

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands and usage tips.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsdocumentation

    3. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: svelte-query

    4. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: query-devtools

    5. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: angular-query-experimental

    6. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: angular-query-persist-client

    7. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: preact-query

Sign in to join this conversation.