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

22 commits

Author SHA1 Message Date
Dominik Dorfmeister
661ddd3bfd
docs: fix link in typescript.md 2024-03-09 16:06:46 +01:00
Jaaneek
77d5b2eaec
feat: add typesafe query disabling via skipToken (#6999)
* feat: add typesafe react-query disabling via skipToken

* feat: add unique identifier to skip token

* feat(query-core): implement skipToken

* chore(query-core): refactor logic of skipToken

* feat(react-query): do not allow skipToken in useSuspenseQuery

* feat(react-query): handle skip token in suspense react queries, add tests

* refactor(query-core): remove check for queryFn === skipToken, enabled is set to false instead

* refactor(query-core): remove check for queryFn === skipToken, enabled is set to false instead

* chore(react-query): remove unused imports

* fix(react-query): update test to display error message in error boundary

* fix(query-core): reduce bundle size by using Symbol() instead of Symbol.for

* fix(query-core): move check for skipToken into already existing if statement

* refactor(query-core): remove no longer needed check for skipToken

* refactor(query-core): make sure enabled===true takes precendence over skipToken

* refactor(react-query): remove unnecesary check for skipToken

* feat: bring back logging in dev mode

* docs: use `skipToken` in TypeScript examples

* refactor: remove checks that shouldn't be necessary because we now assign `enabled` in `defaultQueryOptions`

* types: adjust useQueries types in non-react adapters

* fix: infiniteQueryBehavior needs to _create_ a function that rejects if we have a skipToken, not reject right away

* refactor: flip condition

* try to fix query options

* fix: make core compilable

* fix: allow skipToken on type level for useSuspenseQuery and warn at runtime

it won't work anyways

* test: dataTag + skipToken

* chore: remove a test that doesn't make much sense

* chore: solid tests

* chore: stabilize test

* rewrite test

* test(react-query): remove not needed doNotExecute from test, test-d.tsx files are not executed anyway

* docs(react-query): add example of skipToken into react-query disabling-queries docs

* docs: update disabling queries examples in Angular, React, and Vue guides

* docs: add description of skipToken to typescript.md

* test(react-query): add unique queryKey to should respect skipToken test

* test(react-query): use helper function instead of string in should respect skipToken test

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-03-05 15:55:01 +01:00
Oluwaseun Raphael Afolayan
5e7b273761
docs: Update React Native Example code to Match React Native syntax. (#7028)
The React Native example previously used `<div> </div>` tags and as we all know, divs are a react thing.

This PR fixes that by using the intended (I believe) `<Text> </Text>` tags
2024-03-05 08:22:27 +01:00
austin johnson
eec3786020
docs: 📲React Query Dev Tools for React Native readme update⚡ (#6943)
* Update devtools.md

Add note about new dev tools created in react native

* Update devtools.md

* Update docs/framework/react/devtools.md

* chore: prettier

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-03-04 16:14:50 +01:00
Lachlan Collins
aa9a789d36
docs: Fix formatting, run CI on docs changes (#7018) 2024-03-04 19:25:02 +11:00
LeeJaeSang
663afdc6ca
docs: fix-useQueries-syntax-error (#7017) 2024-03-04 07:43:41 +01:00
Mahmud Zaman Bali
add26cef1b
docs(react-query): fix typo supsends -> suspends (#6998) 2024-03-03 10:43:06 +01:00
HyunJick Lee
ec90029388
docs: modify typo (#7011)
* docs: modify typo

* docs: modify typo
2024-03-03 10:42:51 +01:00
Ekam Ahuja
d83aa272fb
docs: Updated installation commands with bun package manger (#6971) 2024-02-25 10:15:32 +01:00
Seunghyun Min
26d8980c1f
docs(react-query): fix typo whan -> when (#6929) 2024-02-19 08:01:42 +01: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
Niels Bosman
847a99696e
docs(react-query): fix typo in useMutation data attribute (#6921) 2024-02-17 22:51:58 +01: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
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
Dominik Dorfmeister
aad40787e4
fix(types): type structural sharing as unknown (#6888) 2024-02-13 13:46:31 +01:00
Lachlan Collins
e1059300e9
chore: Replace @ts-ignore with @ts-expect-error (#6866) 2024-02-10 18:51:05 +11:00
Arnoud
c2dc9bb05a
feat(angular-query): injectInfiniteQuery (#6808) 2024-02-04 22:42:16 +01:00
Jeong-Sik Yun
58b3de8680
doc: Change the onMutate optional description to capitalize. (#6773) 2024-01-27 14:05:42 +01:00
Lachlan Collins
c22ca89cf3
docs: Move eslint docs to core (#6779) 2024-01-27 07:53:47 +11:00
Lachlan Collins
5a5b61b19b
docs: Fix relative link depth (#6778) 2024-01-26 19:53:40 +11:00
Lachlan Collins
86b8a1df6b
docs: Fix broken links, share reference docs (#6777) 2024-01-26 19:30:21 +11:00
Lachlan Collins
0cdbd5a198
docs: Re-organise for new docs layout (#6763)
* docs: Re-organise for v2 docs layout

* Add $schema
2024-01-26 07:57:22 +11:00