TanStack / query

πŸ€– Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
https://tanstack.com/query
MIT License
42.67k stars 2.92k forks source link

fix: improve external reference relevance #8334

Closed Newbie012 closed 2 days ago

Newbie012 commented 2 days ago

fixes #8326

This change improves the external references relevance. I had to update other test cases accordingly.

nx-cloud[bot] commented 2 days ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit b855e5d9c963366d62c0ec23b439f2b799eccc76. 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 - [`nx affected --targets=test:sherif,test:knip,test:eslint,test:lib,test:types,test:build,build --parallel=3`](https://cloud.nx.app/runs/W3NvuVVhUl?utm_source=pull-request&utm_medium=comment) - [`nx run-many --target=build --exclude=examples/** --exclude=integrations/**`](https://cloud.nx.app/runs/pDVztHSt3l?utm_source=pull-request&utm_medium=comment)

Sent with πŸ’Œ from NxCloud.

pkg-pr-new[bot] commented 2 days ago

Open in Stackblitz

More templates

- [@tanstack/query-example-angular-basic](https://pkg.pr.new/template/b8fa7801-c02e-4e28-a2e6-f49871aa423e) - [@tanstack/query-example-angular-devtools-panel](https://pkg.pr.new/template/62898cca-5b60-4c9e-aa52-43040ff909ca) - [@tanstack/query-example-angular-pagination](https://pkg.pr.new/template/296884b5-ec70-4072-8fa9-24b394922f0d) - [@tanstack/query-example-angular-infinite-query-with-max-pages](https://pkg.pr.new/template/71cbf079-7144-4b78-ae08-879ad99789ff) - [@tanstack/query-example-angular-query-options-from-a-service](https://pkg.pr.new/template/e314f892-dc5d-48de-99f6-85d2768c67c0) - [@tanstack/query-example-angular-router](https://pkg.pr.new/template/642ec04c-b73f-429a-b528-5a231e370b45) - [@tanstack/query-example-angular-simple](https://pkg.pr.new/template/9038d19b-661b-4f68-b0c1-7f5b417c8f7e) - [@tanstack/query-example-angular-rxjs](https://pkg.pr.new/template/86d5a8cb-8f99-490f-b397-a18c331230a7) - [@tanstack/query-example-react-algolia](https://pkg.pr.new/template/8ccde76f-48fb-4aa2-9b10-bc3dac58631a) - [@tanstack/query-example-react-auto-refetching](https://pkg.pr.new/template/7c885e1d-2a79-4bdc-847f-20d61d59caf5) - [@tanstack/query-example-react-basic](https://pkg.pr.new/template/7336ba2d-4441-45a2-a535-06b245dfedc7) - [@tanstack/query-example-react-basic-graphql-request](https://pkg.pr.new/template/8c3c06ba-2c92-4d72-b85c-eeada7723031) - [@tanstack/query-example-react-default-query-function](https://pkg.pr.new/template/68d8f15a-a172-461a-ba98-f3f046d5ca1e) - [@tanstack/query-example-react-devtools-panel](https://pkg.pr.new/template/2910962d-c4af-43d8-b938-3af65958bccb) - [@tanstack/query-example-react-infinite-query-with-max-pages](https://pkg.pr.new/template/7d69ac90-47cf-4aef-9be1-fb896374e05e) - [@tanstack/query-example-react-load-more-infinite-scroll](https://pkg.pr.new/template/bc849b75-7455-4871-aac7-5962a3eeb2b6) - [@tanstack/query-example-react-nextjs](https://pkg.pr.new/template/69abec19-5280-4241-8e79-94a003d65477) - [@tanstack/query-example-react-nextjs-app-prefetching](https://pkg.pr.new/template/796f6f3f-032f-4bd4-92c4-d384933f6daa) - [@tanstack/query-example-nextjs-suspense-streaming](https://pkg.pr.new/template/1a1f2742-9e62-4040-b663-3f8cb5f45797) - [@tanstack/query-example-react-offline](https://pkg.pr.new/template/18fddb67-8108-45cc-bcd9-435da701b54f) - [@tanstack/query-example-react-optimistic-updates-cache](https://pkg.pr.new/template/3b7d205d-5a94-4edd-92a4-f697ff19caca) - [@tanstack/query-example-react-optimistic-updates-ui](https://pkg.pr.new/template/c281ef0a-978b-4bd9-a797-feec8de77035) - [@tanstack/query-example-react-pagination](https://pkg.pr.new/template/b7f08bb5-c72e-487f-877c-4970af61f42a) - [@tanstack/query-example-react-playground](https://pkg.pr.new/template/6f1b8d2d-d66f-4fcf-8338-38d0cbd81e74) - [@tanstack/query-example-react-prefetching](https://pkg.pr.new/template/9ce72f82-6e1e-4fe3-b148-105e844a59e3) - [@tanstack/query-example-react-react-native](https://pkg.pr.new/template/375c9158-08d7-4159-8798-c2260158fc48) - [@tanstack/query-example-react-router](https://pkg.pr.new/template/b83794e3-ee3a-450c-98de-051b6d12defe) - [@tanstack/query-example-react-rick-morty](https://pkg.pr.new/template/5613a7bb-a72d-455b-9093-a7852a2430df) - [@tanstack/query-example-react-shadow-dom](https://pkg.pr.new/template/484a2c4c-e8c8-401b-a99b-8ca8137d10bb) - [@tanstack/query-example-react-simple](https://pkg.pr.new/template/db3e4f99-4aa9-4a09-9f01-73bfaf4f7d3d) - [@tanstack/query-example-react-star-wars](https://pkg.pr.new/template/dadd6ad8-a324-496e-86f1-2e6cf052d7f0) - [@tanstack/query-example-react-suspense](https://pkg.pr.new/template/955aa824-b2a6-4d30-ba8b-62a2d6f4d0e9) - [@tanstack/query-example-solid-astro](https://pkg.pr.new/template/af7b5801-665b-4fc9-959e-47dc7ebaebaf) - [@tanstack/query-example-solid-basic-graphql-request](https://pkg.pr.new/template/81531865-7ad7-4447-a2a1-b2d35170d5a7) - [@tanstack/query-example-solid-basic](https://pkg.pr.new/template/eb233b6e-794e-420c-bb83-ac99de8796a1) - [@tanstack/query-example-solid-simple](https://pkg.pr.new/template/9903f358-f8ff-48e9-b62e-0a0d95bdb18d) - [@tanstack/query-example-solid-default-query-function](https://pkg.pr.new/template/ca662cc0-9e5c-4433-9b56-e5b4ed52ca7c) - [@tanstack/query-example-solid-start-streaming](https://pkg.pr.new/template/8351c420-008b-4b42-86e4-575a93267e49) - [@tanstack/query-example-vue-2.6-basic](https://pkg.pr.new/template/5c0d4adf-1b6a-4171-b1d0-a89f083f7bda) - [@tanstack/query-example-vue-2.7-basic](https://pkg.pr.new/template/9ceb10d4-8242-4d33-b6c8-778f8b26ed72) - [@tanstack/query-example-vue-basic](https://pkg.pr.new/template/0e60c559-c3c1-4cc8-8840-79347778eb52) - [@tanstack/query-example-vue-dependent-queries](https://pkg.pr.new/template/18bdc673-6f86-4b97-a32e-1ffc24e96dbd) - [@tanstack/query-example-vue-nuxt3](https://pkg.pr.new/template/066bd2d0-40c4-40df-b2b0-644f1c61941d) - [@tanstack/query-example-vue-persister](https://pkg.pr.new/template/5c54b2e2-abfd-468b-b8b1-094f3af48a3c) - [@tanstack/query-example-vue-simple](https://pkg.pr.new/template/8373ed05-9097-4b01-873e-b08ed46e96f2) - [@tanstack/query-example-svelte-auto-refetching](https://pkg.pr.new/template/3784e3cb-2568-4559-81d7-b73e7c043023) - [@tanstack/query-example-svelte-basic](https://pkg.pr.new/template/e4ed964a-4eaf-4f28-856a-4fd9366ecd49) - [@tanstack/query-example-svelte-load-more-infinite-scroll](https://pkg.pr.new/template/d0781007-4933-469c-b62b-0614b8808f8b) - [@tanstack/query-example-svelte-optimistic-updates](https://pkg.pr.new/template/d89f91a4-e504-40cd-ac0a-f6d3a0e58876) - [@tanstack/query-example-svelte-playground](https://pkg.pr.new/template/6a0b0bdb-92a8-46e1-9804-293d64969a4d) - [@tanstack/query-example-svelte-simple](https://pkg.pr.new/template/7b3ecaec-4e20-465b-b000-da24d7b972ba) - [@tanstack/query-example-svelte-ssr](https://pkg.pr.new/template/1eb14f34-8dd9-4016-8b44-a024cd74b18e) - [@tanstack/query-example-svelte-star-wars](https://pkg.pr.new/template/0eeb8b64-e526-4da9-93e3-9933ad1bbcaa)

@tanstack/angular-query-devtools-experimental

``` pnpm add https://pkg.pr.new/@tanstack/angular-query-devtools-experimental@8334 ```

@tanstack/angular-query-experimental

``` pnpm add https://pkg.pr.new/@tanstack/angular-query-experimental@8334 ```

@tanstack/query-async-storage-persister

``` pnpm add https://pkg.pr.new/@tanstack/query-async-storage-persister@8334 ```

@tanstack/query-broadcast-client-experimental

``` pnpm add https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@8334 ```

@tanstack/eslint-plugin-query

``` pnpm add https://pkg.pr.new/@tanstack/eslint-plugin-query@8334 ```

@tanstack/query-core

``` pnpm add https://pkg.pr.new/@tanstack/query-core@8334 ```

@tanstack/query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/query-devtools@8334 ```

@tanstack/query-persist-client-core

``` pnpm add https://pkg.pr.new/@tanstack/query-persist-client-core@8334 ```

@tanstack/query-sync-storage-persister

``` pnpm add https://pkg.pr.new/@tanstack/query-sync-storage-persister@8334 ```

@tanstack/react-query

``` pnpm add https://pkg.pr.new/@tanstack/react-query@8334 ```

@tanstack/react-query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/react-query-devtools@8334 ```

@tanstack/react-query-next-experimental

``` pnpm add https://pkg.pr.new/@tanstack/react-query-next-experimental@8334 ```

@tanstack/react-query-persist-client

``` pnpm add https://pkg.pr.new/@tanstack/react-query-persist-client@8334 ```

@tanstack/solid-query

``` pnpm add https://pkg.pr.new/@tanstack/solid-query@8334 ```

@tanstack/solid-query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/solid-query-devtools@8334 ```

@tanstack/solid-query-persist-client

``` pnpm add https://pkg.pr.new/@tanstack/solid-query-persist-client@8334 ```

@tanstack/svelte-query

``` pnpm add https://pkg.pr.new/@tanstack/svelte-query@8334 ```

@tanstack/svelte-query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/svelte-query-devtools@8334 ```

@tanstack/svelte-query-persist-client

``` pnpm add https://pkg.pr.new/@tanstack/svelte-query-persist-client@8334 ```

@tanstack/vue-query

``` pnpm add https://pkg.pr.new/@tanstack/vue-query@8334 ```

@tanstack/vue-query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/vue-query-devtools@8334 ```

commit: b855e5d

codecov[bot] commented 2 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.12%. Comparing base (102b6a8) to head (b855e5d). Report is 1 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/TanStack/query/pull/8334/graphs/tree.svg?width=650&height=150&src=pr&token=jqEbswkEDQ&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack)](https://app.codecov.io/gh/TanStack/query/pull/8334?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) ```diff @@ Coverage Diff @@ ## main #8334 +/- ## ========================================= + Coverage 0 88.12% +88.12% ========================================= Files 0 15 +15 Lines 0 497 +497 Branches 0 185 +185 ========================================= + Hits 0 438 +438 - Misses 0 45 +45 - Partials 0 14 +14 ``` | [Components](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | Coverage Ξ” | | |---|---|---| | [@tanstack/angular-query-devtools-experimental](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/angular-query-experimental](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/eslint-plugin-query](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `88.12% <100.00%> (βˆ…)` | | | [@tanstack/query-async-storage-persister](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/query-broadcast-client-experimental](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/query-codemods](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/query-core](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/query-devtools](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/query-persist-client-core](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/query-sync-storage-persister](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/react-query](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/react-query-devtools](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/react-query-next-experimental](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/react-query-persist-client](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/solid-query](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/solid-query-devtools](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/solid-query-persist-client](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/svelte-query](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/svelte-query-devtools](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/svelte-query-persist-client](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/vue-query](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/vue-query-devtools](https://app.codecov.io/gh/TanStack/query/pull/8334/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | |

🚨 Try these New Features: