0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
Commit graph

5,266 commits

Author SHA1 Message Date
SebKranz
747aa78149
test(queryClient): Remove flaky perfomance tests (#6946) 2024-02-24 13:54:00 +01:00
Tanner Linsley
8104a407cc release: v5.24.0 v5.24.0 2024-02-19 19:28:50 +00:00
Aryan Deora
d5722798b4
feat(query-devtools): Persist picture-in-picture mode through reloads (#6942)
This feature allows the picture-in-picture mode of the devtools to persists through page reloads.

The popup will remain open and will be re-used between page refreshes.
2024-02-19 14:24:27 -05:00
Tanner Linsley
63dcb08038 release: v5.23.0 v5.23.0 2024-02-19 14:11:34 +00:00
Aryan Deora
f419daf365
feat(query-devtools): Add picture-in-picture mode (#6931)
* feat(query-devtools): Adds picture-in-picture mode

This allows the devtools to be detached from the main page and open inside a popup. The components are mounted through a portal onto the new window and all interactions work as expected


---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-02-19 09:06:05 -05:00
Tanner Linsley
5ab1d25c15 release: v5.22.2 v5.22.2 2024-02-19 12:54:20 +00:00
Dominik Dorfmeister
35fa47dd58
fix(query-core): notify queryCache after updateQuery() (#6936)
so that it's never undefined
2024-02-19 13:45:29 +01:00
Seunghyun Min
26d8980c1f
docs(react-query): fix typo whan -> when (#6929) 2024-02-19 08:01:42 +01:00
Tanner Linsley
ae0b995a04 release: v5.22.1 v5.22.1 2024-02-19 01:33:38 +00:00
Arnoud
7bd671fb1a
fix(angular-query): support required input signal (#6928) 2024-02-19 02:30:16 +01:00
Arnoud
75b9c57362
fix(angular-query): Fix StackBlitz examples by downgrading piscina (#6926) 2024-02-18 18:32:40 +01:00
Tanner Linsley
99bfbc5da6 release: v5.22.0 v5.22.0 2024-02-18 13:48:39 +00:00
Arnoud
ef1f7c1e37
feat(angular-query): injectMutationState (#6925)
* feat(angular-query): inject mutation state

* add type tests
2024-02-18 14:43:53 +01:00
Tanner Linsley
2ccc89ce99 release: v5.21.7 v5.21.7 2024-02-18 08:54:14 +00:00
SebKranz
14aa69f3a1
refactor(core): use queryCache.get instead of find({ queryKey }) for better perf (#6918)
Methods that access a query by its `queryKey` can bypass `find` to avoid performance issues in large caches.

Co-authored-by: Sebastian Kranz <sebastian.kranz@nubix.de>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-02-18 09:48:21 +01:00
Tanner Linsley
054eed5c63 release: v5.21.6 v5.21.6 2024-02-18 08:31:25 +00:00
Max Greenwald
a1d12ab610
fix(react-query-next-experimental): fix unnecessary suspensions (#6753)
* Update HydrationStreamProvider + advanced SSR docs

* Implement PR feedback

* refactor: no need for refs if we don't have effects

cleanup ts-expect-error by re-using `win`, which is already `any`

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-02-18 09:27:41 +01:00
Dominik Dorfmeister
ee4fa28840
docs: remove outdated section
closes #6824
2024-02-18 09:24:55 +01:00
Tanner Linsley
43b41c53bb release: v5.21.5 v5.21.5 2024-02-18 01:32:44 +00:00
Aryan Deora
c62fd14f23
fix(query-devtools): Include class name to devtools button component (#6923) 2024-02-17 20:28:36 -05:00
Aryan Deora
928d41a592
patch(query-devtools): Default font-family to Inter (#6922) 2024-02-17 19:50:36 -05:00
Niels Bosman
847a99696e
docs(react-query): fix typo in useMutation data attribute (#6921) 2024-02-17 22:51:58 +01:00
Tanner Linsley
b2bb8e46cb release: v5.21.4 v5.21.4 2024-02-17 18:36:01 +00:00
Dominik Dorfmeister
61f4d74788
refactor(types): make queryKey required on ObserverOptions (#6879)
* refactor(types): make queryKey required on ObserverOptions

we cannot create an observer without a key, because an observer, per definition, watches a certain query by its key

* test: observers need a key

* chore: remove a branch that can't exist

we can't have an observer without a queryKey

* fix: when comparing with shallowEqualObjects, the currentResult must come first

because it doesn't detect length changes

* test: we get another event

* types: you can't set queryKey as default

* a test for undefined queryKey makes no sense

* fix: more type issues

* types: queryKey is also not required for defaultOptions in solid

* fix(core): shallowEqualObjects should return false for objects with different lengths

as we use it for options, and the length of options can change
2024-02-17 19:32:06 +01:00
Tanner Linsley
7595412a01 release: v5.21.3 v5.21.3 2024-02-17 11:15:15 +00:00
Daniel Shamburger
841b4f3870
fix(query-devtools): add name attribute to form elements(#6208)
add name attribute to form elements

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-02-17 12:10:27 +01:00
Tanner Linsley
c1b46aefe5 release: v5.21.2 v5.21.2 2024-02-17 10:09:12 +00:00
Jonghyeon Ko
d9d73ff16d
fix(types): remove unnecessary omitted field of MutationObserverOptions (#6907)
* fix(angular-query): remove unnecessary omit parameter

* fix(*): remove unnecessary omit parameter

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-02-17 11:03:49 +01:00
Jonghyeon Ko
137233b7a8
chore(query-codemods): unify directory name as name field of package.json (#6913)
* refactor(query-codemods): unify directory name as name field of package.json

* chore: update
2024-02-17 10:56:12 +01:00
Lachlan Collins
426bcd63b9
chore: Enable @typescript-eslint/stylistic config (#6914)
* Add @typescript-eslint/stylistic

* Remove knip ignore
2024-02-17 13:27:05 +11:00
Zachary DeRose
496cd8cdcc
ci: More Nx Cloud features (#6906)
* adding root level checks to agent execution

* making root level scripts cacheable

* correctly setting inputs

* adding agents to ci.yml

* adding dynamic changesets to fix variable size PRs

* fixing resource name in dynamic-changesets.yaml

* reruning tests

* Delete tsbuildinfo file

* Update PR and CI scripts

* Add stop-agents-on-failure=false

* parallel=3

* Ignore .pnpm-store

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-02-17 11:55:35 +11:00
Arnoud
65a55409a9
docs(angular-query-devtools): button position relative (#6911) 2024-02-16 23:34:19 +01:00
Tanner Linsley
e83a8232ac release: v5.21.1 v5.21.1 2024-02-16 19:54:04 +00:00
Aryan Deora
e23e6f22e3
fix(solid-query): Fix Infinite Query SSR payload (#6909) 2024-02-16 14:46:30 -05:00
Tanner Linsley
8a2e8a5391 release: v5.21.0 v5.21.0 2024-02-16 19:30:23 +00:00
Don Denton
ac0d05c1d8
feat(query-devtools): Add btn position relative support (#6576)
In addition to adding support for relative positioning of the button,
I've added in opacity changes for all in/out animations.
2024-02-16 14:23:41 -05:00
Tanner Linsley
7f81901de4 funding changes 2024-02-15 00:59:57 -07:00
Tanner Linsley
1ede42f7e6 move funding.json 2024-02-15 00:56:55 -07:00
Tanner Linsley
361c08edd3
Update and rename FUNDING.yml to FUNDING.json 2024-02-15 00:54:52 -07:00
Lachlan Collins
b614725a0b
docs(examples): Update Vinxi (#6899) 2024-02-14 20:33:26 +11:00
Lachlan Collins
ae5527409b
chore: Ignore .tsbuildinfo files (#6898) 2024-02-14 19:45:06 +11:00
Rui Saraiva
d3203e796c
docs(examples): improve react-router example (#6836)
* docs(examples): improve react-router example

* chore: match types

* chore: update lock file

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-02-14 07:27:41 +11:00
Lachlan Collins
2cc95245a0
ci: Add sherif task to pr.yml (#6897) 2024-02-14 07:16:43 +11:00
austin johnson
b842e72b7a
docs: Update devtools.md (#6893)
Add note about external React Query dev tools that will work for React Native
2024-02-13 16:41:47 +01:00
Jonghyeon Ko
c9163c4bbb
chore(ci): codecov components (#6826)
* ci(codecov): components

* chore: update

* chore: update
2024-02-13 16:18:23 +01:00
Tanner Linsley
7972003bc5 release: v5.20.5 v5.20.5 2024-02-13 13:15:22 +00:00
Dominik Dorfmeister
7e255691fe
fix(core): do not update mutations if key has changed (#6889)
* fix(core): do not update mutations if key has changed

* chore: remove .only test
2024-02-13 14:05:42 +01:00
Tanner Linsley
99559b651f release: v5.20.4 v5.20.4 2024-02-13 12:49:18 +00:00
Dominik Dorfmeister
aad40787e4
fix(types): type structural sharing as unknown (#6888) 2024-02-13 13:46:31 +01:00
Tanner Linsley
7a98470558 release: v5.20.3 v5.20.3 2024-02-13 12:00:58 +00:00