0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-16 22:50:20 +00:00
Commit graph

4,997 commits

Author SHA1 Message Date
Luca Dibattista
5290aa1012
fix(queryCore): export MutationCacheNotifyEvent type (#6270)
* fix(mutationCache): export MutationCacheNotifyEvent type

Export MutationCacheNotifyEvent type to make it consistent with QueryCacheNotifyEvent (which is exported) and make it easier to write listener functions.

* fix(mutationCache): export MutationCacheNotifyEvent type

---------

Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2023-12-19 21:21:25 +01:00
Tanner Linsley
a950962db6
Update README.md 2023-12-19 10:32:51 -07:00
MinhoPark
583c3a8001
chore(React Import): Unification of React import method (#6553)
* refactor: remove console.log

* refactor: remove console.log

* refactor: ts file unification of React import method

* refactor: match convention

* refactor: match convention

* fix: Code style issues found in 1 file. Run Prettier to fix.

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-12-19 18:15:50 +01:00
Michael Be
95ce0cc9ea
docs(angular-query): remove non-existing menu-item which redirects to react guide (#6557) 2023-12-19 16:13:10 +01:00
Arnoud
1ed85edb9f
refactor(angular-query-devtools) non optional devtools property in devtools component (#6555)
Co-authored-by: Tomasz Ducin <tomasz@ducin.it>
2023-12-18 20:02:49 +01:00
Brenden Ehlers
e02557ecd7
docs: add documentation for gcTime error for react-query (#6544)
* docs(QueryClient): add documentation for gcTime error

* docs(QueryClient): change 'will' to 'can'

* docs(react-query): moved gcTime warning to SSR guide

* docs(react-query): added paragraph explaining gcTime issue

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-12-18 08:21:41 +01:00
Tanner Linsley
0f2db04f7a release: v5.14.1 v5.14.1 2023-12-17 14:29:28 +00:00
Alex Liu
320cf9bed2
fix(query-core): fix context type error in onSuccess (#6355)
* fix(query-core): fix context type error in `onSuccess`

* docs(query-core): update `useMutation` documentations

* fix(query-core): the `context` should not be inferred as `undefined` when `TContext` is defined

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-12-17 15:23:19 +01:00
Tyler McGinnis
c38c1cb563
Update course link (#6545) 2023-12-16 13:32:42 -07:00
Arnoud
60cbd75e40
docs(angular-query): add guides (#6530)
* docs(angular-query): add guides

* docs(angular-query): add mutations guide

* docs(angular-query): guides improvements

* docs(angular-query): update docs

* docs(angular-query): add initial query data guide

* add keywords and optimistic updates guide

* Replace React specifics with Angular ones
2023-12-16 13:11:39 +01:00
Tanner Linsley
84e2ef2197 release: v5.14.0 v5.14.0 2023-12-15 12:02:22 +00:00
Dominik Dorfmeister
94154d73aa
feat(core): changing mutationKeys should reset observer (#6511)
this allows key-ing of mutations without having to re-mount components using mutations; the mutationKey basically defines the identity of the mutation - it doesn't make much sense to keep data of a different mutationKey around at observer level if the key changes
2023-12-15 12:56:15 +01:00
Tanner Linsley
e2d5da2fd3
Update config.json 2023-12-14 10:23:38 -07:00
Tanner Linsley
b3a73b0de4
Update config.json 2023-12-14 10:20:04 -07:00
Tanner Linsley
5eb4f6dead
Update config.json 2023-12-14 10:14:35 -07:00
Tanner Linsley
2539b37ddf
Update config.json 2023-12-14 09:58:58 -07:00
Arnoud
258238cfb7
docs(angular-query): update examples and getting started docs (#6520) 2023-12-12 15:39:09 +01:00
Drew Powers
e45c11973e
docs: add openapi-fetch to community-projects(#6499)
Hello, I’m the maintainer of openapi-fetch, and use it primarily with TanStack Query. Though it’s a vanillaJS project, it works perfectly with TanStack Query and there are even dedicated docs to using the two together.

Happy to accept any change requests in the description, etc.
2023-12-12 10:15:15 +01:00
Jonghyeon Ko
894561098c
docs(docs/react): update spelling opera consistency (#6523) 2023-12-12 09:47:31 +01:00
Harry Chen
b484fe5adb
docs: Update query-options.md (#6506)
* Update query-options.md

I supposed it was a link to https://tanstack.com/query/v5/docs/react/typescript#typing-query-options

* Update query-options.md

Change to relative path

* Update query-options.md
2023-12-11 14:41:07 +01:00
이효범
f093f4b6b0
docs: Update useQueries.md (#6514) 2023-12-11 13:57:46 +01:00
Tanner Linsley
56983b3a0b release: v5.13.5 v5.13.5 2023-12-10 23:24:15 +00:00
Aryan Deora
fca1b4569c
fix(query-devtools): Fix scroll on container (#6519) 2023-12-10 18:21:34 -05:00
Arnoud
990acd416d
docs(angular-query): run prettier on readme (#6517) 2023-12-10 15:40:19 +01:00
Arnoud
b811190edf
docs(angular-query): add readme (#6515) 2023-12-10 15:22:40 +01:00
Tanner Linsley
f459f28cce release: v5.13.4 v5.13.4 2023-12-09 09:52:12 +00:00
Dominik Dorfmeister
e34bfabe25
fix(core): mutation GC leak when reset, but not unsubscribed (#6509)
mutations were not gc'd correctly when being reset. GC was invoked on unsubscribe, but reset disconnects the observer from the mutation in the cache and must thus also trigger a GC, because the observer is no longer watching the values of that mutation, and another mutate() call will create a new mutation anyway. Thus, the old mutation becomes orphaned when reset is called.
2023-12-09 10:48:50 +01:00
Tanner Linsley
9b1aa77010 release: v5.13.3 v5.13.3 2023-12-06 03:38:50 +00:00
Aryan Deora
e766929fe2
fix(query-devtools): Improve Perf for queries table (#6493)
This change dramatically improves the performance of the queries table. The issue was that each Query Row would update on every queryCache update. Now, each QueryRow only updates when its particular query is updated.
2023-12-05 22:35:38 -05:00
Tanner Linsley
f4822a739a release: v5.13.2 v5.13.2 2023-12-05 02:25:20 +00:00
Lachlan Collins
de82bd60dc
fix(svelte-query): Support v5 alpha (#6487) 2023-12-05 11:23:39 +09:00
Tanner Linsley
d0f5722985 release: v5.13.1 v5.13.1 2023-12-04 14:42:21 +00:00
Lachlan Collins
e44f96378b
fix(svelte-query): Remove incorrect CJS resolution (#6485) 2023-12-04 23:40:23 +09:00
Dominik Dorfmeister
ecb71fbca4 docs: query options 2023-12-04 14:16:18 +01:00
Tanner Linsley
478ed5bc21 release: v5.13.0 v5.13.0 2023-12-03 16:30:45 +00:00
Arnoud
21502ad8e5
feat(angular-query): rename Angular Query devtools (#6479) 2023-12-03 17:27:23 +01:00
Tanner Linsley
7946653999 release: v5.12.2 v5.12.2 2023-12-02 09:37:17 +00:00
Charlotte Grace (Bone)
b54936f11d
fix(useQueries): add type tests for useQueries and fix a couple of type bugs (#6471)
Creating new useQueries type tests in react-query and vue-query and fixing a couple of type bugs.
2023-12-02 10:34:05 +01:00
Enea Jahollari
23374bb434
docs(angular-query): fix quickstart 2023-12-01 20:01:16 +01:00
Arnoud
ac046b1170
docs(angular-query): compatible with angular 17 (#6469) 2023-12-01 18:53:05 +01:00
Tanner Linsley
1198570cbb release: v5.12.1 v5.12.1 2023-12-01 15:43:27 +00:00
Dominik Dorfmeister
4e8a6c5acc
fix: angular release process (#6468)
RELEASE_ALL

* fix: make sure there is only one package.json after build

* fix: angular release

we cannot publish out of the build directory because pnpm doesn't see it as a workspace, so it won't replace workspace dependencies. To fix this, we:

- make the publish script point to the root directory (config.js)
- make sure our top-level package.json has types and exports and that they point to ./build
- make sure to remove the build/package.json after the build script ran

* chore: use rimraf

* chore: specify files to limit what we include

* chore: fix relative workspace dependencies

* chore: fix ci.json

* fix: package.json path
2023-12-01 16:30:04 +01:00
Lachlan Collins
3a60413d94
chore: Use prettier v4 alpha (#6466) 2023-12-01 22:36:48 +09:00
Dominik Dorfmeister
a914166b16
feat: trigger release v5.12.0
RELEASE_ALL
2023-12-01 14:25:40 +01:00
Dominik Dorfmeister
776a2098f9
chore: trigger release
RELEASE_ALL
2023-12-01 14:19:21 +01:00
Tanner Linsley
16494bd480 release: v5.11.0 v5.11.0 2023-12-01 13:15:44 +00:00
Arnoud
46034aada2
feat: experimental angular query adapter (#6195)
* feat(angular-query): add Angular Query

* feat(angular-query): integration test

* fix(angular-query): PR feedback on QueryClientService injection

* fix(angular-query): PR feedback

* chore(angular-query): update unit tests

* feat(angular-query): custom inject functions

* feat(angular-query): docs

* fix(angular-query): replace React context mention with Angular injector

* fix(angular-query): re-add missing angular-query-experimental package config

* feat: updated angular version

* feat: code improvements, DX improvements, fixed small doc example to use http client,

* Update docs/angular/overview.md

* version fixes

* feat: use proxy object to create single signals (computed) for query fields instead of query itself being a signal and improved types

* fix: docs

* Update packages/angular-query-experimental/src/query-proxy.ts

Co-authored-by: Chau Tran <nartc7789@gmail.com>

* Update packages/angular-query-experimental/src/query-proxy.ts

Co-authored-by: Chau Tran <nartc7789@gmail.com>

* fix: add missing import

* revert: use helper method for injectQueryClient

* Add Angular-CLI apps for testing

* fix: useValue instead of useFactory

* fix(angular-query): examples

* chore(angular-query): remove build script from angular 17 integration

* fix(angular-query): add sandbox config

* build working for angular-query-devtools-experimental

* fix(angular-query): improve development workflow

* fix(angular-query): downgrade vitest

* fix(angular-query): eslint and unit test typing fix

* fix(angular-query): test:ci fixes

* fix(angular-query): relative workspace path to build dir

* fix(angular-query): configure workspaces for top directories only

* chore(angular-query): remove dead code found by Knip

---------

Co-authored-by: Enea Jahollari <jahollarienea14@gmail.com>
Co-authored-by: Chau Tran <nartc7789@gmail.com>
Co-authored-by: Tomasz Ducin <tomasz@ducin.it>
Co-authored-by: Tomasz Ducin <tomasz.ducin@gmail.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-12-01 14:09:39 +01:00
Tyler Dane
af0ff9ad50
docs(initial-query-data.md): simplify initialDataUpdatedAt (#6458)
Simplify `initialDataUpdatedAt` description to avoid confusion
2023-12-01 13:28:37 +01:00
Dammy O
0604a40d37
docs: Update paginated-queries.md (#6463)
use isPlaceholderData instead of isPreviousData.

isPreviousData does not exist, and should be replaced with isPlaceholderData.

Also keepPreviousData: true does not also exist and should be replaced as written.
2023-12-01 13:24:50 +01:00
Tanner Linsley
e5d1e247ae release: v5.10.0 v5.10.0 2023-11-29 15:07:47 +00:00