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

5,165 commits

Author SHA1 Message Date
Lachlan Collins
499db1370d
fix: Update to tsup v8 (#6585)
* Update to tsup v8

* Update esbuild-plugin-file-path-extensions
2023-12-26 00:23:51 +11:00
Lachlan Collins
2d4637d937
chore: Enable prefer-workspace-packages (#6584) 2023-12-26 00:01:20 +11:00
Tanner Linsley
67f76b15b5 release: v5.14.6 v5.14.6 2023-12-23 16:04:39 +00:00
Arnoud
fdcdfdc68b
fix(angular-query): fix optimistic result (#6575) 2023-12-23 17:02:33 +01:00
Lachlan Collins
1340d590a2
chore: Update to Nx v17 (#6581)
* chore: Update to Nx v17

* Fix pnpm lockfile
2023-12-23 23:24:16 +11:00
Lachlan Collins
81cbf81f10
chore: Update dependencies (#6580)
* Update types and eslint

* Update more patch/minor deps

* Bump node and pnpm

* Undo next and node changes

* More updates

* Seems to work now

* Lock TS 5.2.2

* Bump ky

* Final bumps

* Remove duplicated type

* Update react-native example

* Remove @callstack/eslint-config
2023-12-23 23:07:58 +11:00
Lachlan Collins
50bf5ce366
chore: Update publint (#6579) 2023-12-23 19:24:30 +11:00
Tanner Linsley
fd330979c3 release: v5.14.5 v5.14.5 2023-12-21 15:06:16 +00:00
R. Dylan Walker
7579dc637e
fix(query-devtools): remove automatic inclusion of font cdn link (#6573) 2023-12-21 16:03:23 +01:00
Arnoud
1b4121a09f
chore(angular-query): add angular adapter to bug template (#6572) 2023-12-21 13:55:00 +01:00
Tanner Linsley
4c9fde9f69 release: v5.14.4 v5.14.4 2023-12-19 22:04:16 +00:00
Damian Osipiuk
723dfc71e5
fix(vue-query): fix select type inference (#6562) 2023-12-19 23:02:55 +01:00
Tanner Linsley
c3fab9337c release: v5.14.3 v5.14.3 2023-12-19 21:42:16 +00:00
Damian Osipiuk
abb72baac3
fix(vue-query): ensure that invalidateQueries trigger queryFn with updated ref values (#6561) 2023-12-19 22:37:32 +01:00
Tanner Linsley
7a6173364b release: v5.14.2 v5.14.2 2023-12-19 20:38:18 +00:00
Magomed Chemurziev
9bc1e6570b
fix(vue-query): add ensureQueryData support to queryClient (#6500)
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2023-12-19 21:31:51 +01:00
Alex Liu
46a4444609
docs(vue-query): updated usage examples for nuxt 3 (#6527) 2023-12-19 21:30:50 +01:00
robin labat
6611c4c1c0
fix(vue-query): improve queryClient type inference (#6335)
Co-authored-by: LABAT Robin <robin.labat@airbus.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2023-12-19 21:26:39 +01:00
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