Skip to content
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): improve support for required signals #8409

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

arnoud-dv
Copy link
Collaborator

@arnoud-dv arnoud-dv commented Dec 6, 2024

Delaying creation of the observer by using a closure to return the observer from a computed signal supports more scenarios where required signals are used in reactive options.

Also part of a fix for #7488. A complete fix would require additional changes to the signal proxy to not evaluate the source computed signal until target computed signals are evaluated.

Copy link

nx-cloud bot commented Dec 6, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit e06359e. 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 targets

Sent with 💌 from NxCloud.

Copy link

pkg-pr-new bot commented Dec 6, 2024

Open in Stackblitz

More templates

@tanstack/angular-query-devtools-experimental

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

@tanstack/query-async-storage-persister

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

@tanstack/query-broadcast-client-experimental

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

@tanstack/query-core

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

@tanstack/angular-query-experimental

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

@tanstack/eslint-plugin-query

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

@tanstack/query-devtools

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

@tanstack/query-persist-client-core

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

@tanstack/react-query

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

@tanstack/query-sync-storage-persister

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

@tanstack/react-query-devtools

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

@tanstack/react-query-next-experimental

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

@tanstack/react-query-persist-client

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

@tanstack/solid-query

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

@tanstack/solid-query-devtools

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

@tanstack/solid-query-persist-client

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

@tanstack/svelte-query

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

@tanstack/svelte-query-devtools

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

@tanstack/svelte-query-persist-client

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

@tanstack/vue-query

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

@tanstack/vue-query-devtools

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

commit: e06359e

Copy link

codecov bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.61%. Comparing base (7f9f28e) to head (e06359e).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #8409       +/-   ##
===========================================
+ Coverage   46.10%   88.61%   +42.50%     
===========================================
  Files         200       16      -184     
  Lines        7500      281     -7219     
  Branches     1708       43     -1665     
===========================================
- Hits         3458      249     -3209     
+ Misses       3667       31     -3636     
+ Partials      375        1      -374     
Components Coverage Δ
@tanstack/angular-query-devtools-experimental ∅ <ø> (∅)
@tanstack/angular-query-experimental 88.61% <100.00%> (+1.47%) ⬆️
@tanstack/eslint-plugin-query ∅ <ø> (∅)
@tanstack/query-async-storage-persister ∅ <ø> (∅)
@tanstack/query-broadcast-client-experimental ∅ <ø> (∅)
@tanstack/query-codemods ∅ <ø> (∅)
@tanstack/query-core ∅ <ø> (∅)
@tanstack/query-devtools ∅ <ø> (∅)
@tanstack/query-persist-client-core ∅ <ø> (∅)
@tanstack/query-sync-storage-persister ∅ <ø> (∅)
@tanstack/react-query ∅ <ø> (∅)
@tanstack/react-query-devtools ∅ <ø> (∅)
@tanstack/react-query-next-experimental ∅ <ø> (∅)
@tanstack/react-query-persist-client ∅ <ø> (∅)
@tanstack/solid-query ∅ <ø> (∅)
@tanstack/solid-query-devtools ∅ <ø> (∅)
@tanstack/solid-query-persist-client ∅ <ø> (∅)
@tanstack/svelte-query ∅ <ø> (∅)
@tanstack/svelte-query-devtools ∅ <ø> (∅)
@tanstack/svelte-query-persist-client ∅ <ø> (∅)
@tanstack/vue-query ∅ <ø> (∅)
@tanstack/vue-query-devtools ∅ <ø> (∅)

@arnoud-dv arnoud-dv force-pushed the refactor/signal-init branch 3 times, most recently from 7ec1001 to 9edf927 Compare December 8, 2024 13:33
@arnoud-dv arnoud-dv changed the title refactor(angular-query): use only computed signals for lazy initialization fix(angular-query): improve support for required signals Dec 8, 2024
@arnoud-dv arnoud-dv marked this pull request as ready for review December 8, 2024 13:40
@arnoud-dv arnoud-dv force-pushed the refactor/signal-init branch 2 times, most recently from 9675568 to 63db458 Compare December 8, 2024 15:00
@arnoud-dv arnoud-dv force-pushed the refactor/signal-init branch from 63db458 to e06359e Compare December 8, 2024 15:24
@arnoud-dv arnoud-dv merged commit 67d1705 into TanStack:main Dec 8, 2024
8 checks passed
@arnoud-dv arnoud-dv deleted the refactor/signal-init branch December 8, 2024 15:41
Sign up for free to 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.

1 participant