Skip to content

Angular persist query client experimental - #8324

Merged
arnoud-dv merged 57 commits into
TanStack:mainfrom
OmerGronich:angular-persist-query-client-experimental
Apr 13, 2025
Merged

Angular persist query client experimental#8324
arnoud-dv merged 57 commits into
TanStack:mainfrom
OmerGronich:angular-persist-query-client-experimental

Conversation

@OmerGronich

@OmerGronichOmerGronich commented Nov 22, 2024

Copy link
Copy Markdown
Contributor

Angular Query Persister Plugin

  • Created angular-query-persist-client-package
  • Implemented withPersistQueryClient in new package
  • Added isRestoring provider and injection token to main angular-query package

@OmerGronich
OmerGronich marked this pull request as draft November 22, 2024 14:58
@OmerGronich
OmerGronichforce-pushed the angular-persist-query-client-experimental branch from 8474149 to 31c8c0eCompareNovember 22, 2024 15:01
@nx-cloud

nx-cloudBot commented Nov 22, 2024

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 14509a2.

CommandStatusDurationResult
nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded4m 21sView ↗
nx run-many --target=build --exclude=examples/*...✅ Succeeded2m 8sView ↗

☁️ Nx Cloud last updated this comment at 2025-04-13 15:32:04 UTC

@OmerGronich
OmerGronichforce-pushed the angular-persist-query-client-experimental branch 3 times, most recently from 0ff5f5c to b4d880aCompareNovember 23, 2024 12:00
@OmerGronich
OmerGronich deleted the angular-persist-query-client-experimental branch November 23, 2024 12:00
@OmerGronich
OmerGronich restored the angular-persist-query-client-experimental branch November 23, 2024 12:00
@OmerGronich
OmerGronichforce-pushed the angular-persist-query-client-experimental branch from 566f72a to e1ae58dCompareNovember 23, 2024 19:42
@OmerGronich
OmerGronich marked this pull request as ready for review November 23, 2024 20:12
@arnoud-dvarnoud-dv self-assigned this Nov 26, 2024
@OmerGronich
OmerGronichforce-pushed the angular-persist-query-client-experimental branch 2 times, most recently from d4fa95c to 9e4182aCompareNovember 29, 2024 13:27

@arnoud-dvarnoud-dv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions for now, I still need to do a more in-depth review of the persistence itself.

Comment threadexamples/angular/basic-persister/.devcontainer/devcontainer.json Outdated
Comment threadexamples/angular/basic-persister/package.json
Comment threadexamples/angular/basic-persister/src/app/app.config.ts Outdated
Comment threadexamples/angular/basic-persister/src/index.html Outdated
Comment threadexamples/angular/basic-persister/tsconfig.json
Comment threadexamples/angular/basic-persister/tsconfig.json Outdated
Comment threadexamples/angular/basic-persister/tsconfig.json
Comment threadpackages/angular-query-experimental/src/inject-is-restoring.ts Outdated
@OmerGronich
OmerGronichforce-pushed the angular-persist-query-client-experimental branch 3 times, most recently from 3c3c8ec to ed0ed3cCompareDecember 7, 2024 14:40

@crutchcorncrutchcorn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was requested to review this PR from OP - it generally looks good to me! Seems like a lot of edgecases handled as well.

Anything you want to me to take a closer eye on?

Comment threadpackages/angular-query-experimental/src/create-base-query.ts
@arnoud-dv
arnoud-dvforce-pushed the angular-persist-query-client-experimental branch from 4f52f3a to 3c7a516CompareApril 13, 2025 12:46
@arnoud-dv
arnoud-dvforce-pushed the angular-persist-query-client-experimental branch from 3c7a516 to 12e9b00CompareApril 13, 2025 12:47
@pkg-pr-new

pkg-pr-newBot commented Apr 13, 2025

Copy link
Copy Markdown
More templates

@tanstack/angular-query-devtools-experimental

npm i https://pkg.pr.new/@tanstack/angular-query-devtools-experimental@8324

@tanstack/eslint-plugin-query

npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@8324

@tanstack/angular-query-experimental

npm i https://pkg.pr.new/@tanstack/angular-query-experimental@8324

@tanstack/query-async-storage-persister

npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@8324

@tanstack/query-broadcast-client-experimental

npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@8324

@tanstack/query-core

npm i https://pkg.pr.new/@tanstack/query-core@8324

@tanstack/query-devtools

npm i https://pkg.pr.new/@tanstack/query-devtools@8324

@tanstack/query-persist-client-core

npm i https://pkg.pr.new/@tanstack/query-persist-client-core@8324

@tanstack/query-sync-storage-persister

npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@8324

@tanstack/react-query

npm i https://pkg.pr.new/@tanstack/react-query@8324

@tanstack/react-query-devtools

npm i https://pkg.pr.new/@tanstack/react-query-devtools@8324

@tanstack/react-query-next-experimental

npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@8324

@tanstack/react-query-persist-client

npm i https://pkg.pr.new/@tanstack/react-query-persist-client@8324

@tanstack/solid-query

npm i https://pkg.pr.new/@tanstack/solid-query@8324

@tanstack/solid-query-devtools

npm i https://pkg.pr.new/@tanstack/solid-query-devtools@8324

@tanstack/solid-query-persist-client

npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@8324

@tanstack/svelte-query

npm i https://pkg.pr.new/@tanstack/svelte-query@8324

@tanstack/svelte-query-devtools

npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@8324

@tanstack/svelte-query-persist-client

npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@8324

@tanstack/vue-query

npm i https://pkg.pr.new/@tanstack/vue-query@8324

@tanstack/vue-query-devtools

npm i https://pkg.pr.new/@tanstack/vue-query-devtools@8324

commit: 14509a2

@codecov

codecovBot commented Apr 13, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 75.43860% with 14 lines in your changes missing coverage. Please review.

Project coverage is 44.44%. Comparing base (3471d0f) to head (14509a2).

Additional details and impacted files

Impacted file tree graph

@@ Coverage Diff @@## main #8324 +/- ##
==========================================
+ Coverage 44.32% 44.44% +0.12% 
==========================================
Files 202 204 +2 Lines 8063 8099 +36 Branches 1784 1796 +12 ==========================================
+ Hits 3574 3600 +26 - Misses 4059 4067 +8 - Partials 430 432 +2 
ComponentsCoverage Δ
@tanstack/angular-query-devtools-experimental∅ <ø> (∅)
@tanstack/angular-query-experimental85.32% <62.16%> (-2.77%)⬇️
@tanstack/eslint-plugin-query83.02% <ø> (ø)
@tanstack/query-async-storage-persister43.85% <ø> (ø)
@tanstack/query-broadcast-client-experimental∅ <ø> (∅)
@tanstack/query-codemods0.00% <ø> (ø)
@tanstack/query-core95.47% <ø> (ø)
@tanstack/query-devtools3.61% <ø> (ø)
@tanstack/query-persist-client-core73.46% <ø> (ø)
@tanstack/query-sync-storage-persister84.61% <ø> (ø)
@tanstack/react-query95.42% <ø> (ø)
@tanstack/react-query-devtools10.00% <ø> (ø)
@tanstack/react-query-next-experimental∅ <ø> (∅)
@tanstack/react-query-persist-client100.00% <ø> (ø)
@tanstack/solid-query78.48% <ø> (ø)
@tanstack/solid-query-devtools∅ <ø> (∅)
@tanstack/solid-query-persist-client100.00% <ø> (ø)
@tanstack/svelte-query88.15% <ø> (ø)
@tanstack/svelte-query-devtools∅ <ø> (∅)
@tanstack/svelte-query-persist-client100.00% <ø> (ø)
@tanstack/vue-query71.01% <ø> (ø)
@tanstack/vue-query-devtools∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arnoud-dvarnoud-dv removed their assignment Apr 13, 2025
@arnoud-dv
arnoud-dv merged commit 967c231 into TanStack:mainApr 13, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@OmerGronich@arnoud-dv@crutchcorn