| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
refactor(preact-query*): rename local 'useRef' variables with the 'Ref' suffix (#11792) * refactor(preact-query*): rename local 'useRef' variables with the 'Ref' suffix * test(preact-query): name 'useState' value and setter pairs and use stable keys | 1 天前 | |
ci: Version Packages (#11806) ci: changeset release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 13 小时前 | |
docs({react-query,preact-query,solid-query,svelte-query}/README): point the CI badge at the 'release.yml' workflow on 'main' (#11633) * docs({react-query,preact-query,solid-query,svelte-query}/README): point the CI badge at the 'release.yml' workflow on 'main' * docs({react-query,preact-query,solid-query,svelte-query}/README): add alt text to the release badge | 7 天前 | |
chore(*): replace 'typescript-eslint' with '@typescript-eslint/parser' in preact packages and remove redundant eslint options (#11791) * chore(*): replace 'typescript-eslint' with '@typescript-eslint/parser' in preact packages and remove redundant eslint options * style(*): add a blank line after '@ts-check' and remove the blank line between imports in preact eslint configs | 1 天前 | |
ci: Version Packages (#11806) ci: changeset release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 13 小时前 | |
feat: Preact Adapter (#9935) * initial setup -- duplicated + package.json edited * simple preact updations * missed a React.ReactNode * testing grunt work (preact library + other small issues + ErrorBoundary custom implementation) * missed a few * Adds ErrorBoundary (from react-error-boundary, but scaled down for preact) -- fixes a lot of tests, which expect react-related functionality * useSuspenseQueries left -- removed the useQuery.promise tests * forgot the console logs * useSuspenseQueries 2 resolved; tests done * ci: apply automated fixes * fix: example * fix: configs should be symlinks * fix: sync versions for npm-run-all2 * ref: re-sync runall2 * ref: go back to 5.0.0 * ref: remove changelog * react-query -> preact-query * remove use client directive + added the useSyncExternalStore (decoupled from compat) * remove the react remnants * generate docs * typescript eslint * docs * vite config fix * docs now reference react docs (most of them atleast) * code-rabbit issues addressed * <div/> lol * fix: docs * ci: apply automated fixes * fix: lockfile * fix: duplicated versions * lockfile (I cooked or am I cooked) * ci: apply automated fixes * Making small edits to fix versioning, warnings, and lock * unhandled error compat * Fixing CI * Fixed the CI errors * ci: apply automated fixes * Prettier format * Update changeset for Preact Adapter feature --------- Co-authored-by: TkDodo <office@dorfmeister.cc> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> | 7 个月前 | |
chore: tsup -> tsdown (#11222) * chore: tsup -> tsdown * revert size-limit and fix the build instead * fix angular and devtools build * fix nextJs builds * more solid related things * fix: import order | 1 个月前 | |
feat: Preact Adapter (#9935) * initial setup -- duplicated + package.json edited * simple preact updations * missed a React.ReactNode * testing grunt work (preact library + other small issues + ErrorBoundary custom implementation) * missed a few * Adds ErrorBoundary (from react-error-boundary, but scaled down for preact) -- fixes a lot of tests, which expect react-related functionality * useSuspenseQueries left -- removed the useQuery.promise tests * forgot the console logs * useSuspenseQueries 2 resolved; tests done * ci: apply automated fixes * fix: example * fix: configs should be symlinks * fix: sync versions for npm-run-all2 * ref: re-sync runall2 * ref: go back to 5.0.0 * ref: remove changelog * react-query -> preact-query * remove use client directive + added the useSyncExternalStore (decoupled from compat) * remove the react remnants * generate docs * typescript eslint * docs * vite config fix * docs now reference react docs (most of them atleast) * code-rabbit issues addressed * <div/> lol * fix: docs * ci: apply automated fixes * fix: lockfile * fix: duplicated versions * lockfile (I cooked or am I cooked) * ci: apply automated fixes * Making small edits to fix versioning, warnings, and lock * unhandled error compat * Fixing CI * Fixed the CI errors * ci: apply automated fixes * Prettier format * Update changeset for Preact Adapter feature --------- Co-authored-by: TkDodo <office@dorfmeister.cc> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> | 7 个月前 | |
chore(tsconfig.json): narrow 'include' pattern to prevent TS6053 race conditions from tsup bundled config files (#10522) * chore(tsconfig.json): exclude tsup bundled config files to prevent TS6053 race conditions * chore(tsconfig.json): narrow 'include' pattern to specific config extensions * ci: apply automated fixes * chore(tsconfig.json): replace brace expansion with explicit '*.config.ts' and '*.config.js' patterns * chore(tsconfig.json): use single-line 'include' arrays for consistency * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> | 4 个月前 | |
feat: Preact Adapter (#9935) * initial setup -- duplicated + package.json edited * simple preact updations * missed a React.ReactNode * testing grunt work (preact library + other small issues + ErrorBoundary custom implementation) * missed a few * Adds ErrorBoundary (from react-error-boundary, but scaled down for preact) -- fixes a lot of tests, which expect react-related functionality * useSuspenseQueries left -- removed the useQuery.promise tests * forgot the console logs * useSuspenseQueries 2 resolved; tests done * ci: apply automated fixes * fix: example * fix: configs should be symlinks * fix: sync versions for npm-run-all2 * ref: re-sync runall2 * ref: go back to 5.0.0 * ref: remove changelog * react-query -> preact-query * remove use client directive + added the useSyncExternalStore (decoupled from compat) * remove the react remnants * generate docs * typescript eslint * docs * vite config fix * docs now reference react docs (most of them atleast) * code-rabbit issues addressed * <div/> lol * fix: docs * ci: apply automated fixes * fix: lockfile * fix: duplicated versions * lockfile (I cooked or am I cooked) * ci: apply automated fixes * Making small edits to fix versioning, warnings, and lock * unhandled error compat * Fixing CI * Fixed the CI errors * ci: apply automated fixes * Prettier format * Update changeset for Preact Adapter feature --------- Co-authored-by: TkDodo <office@dorfmeister.cc> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> | 7 个月前 | |
fix/nodejs timeout (#10325) * fix(timeout): make sure NodeJs.Timout doesn't leak * changeset * fix(tsconfig): include src directory in production configuration | 6 个月前 | |
chore: tsup -> tsdown (#11222) * chore: tsup -> tsdown * revert size-limit and fix the build instead * fix angular and devtools build * fix nextJs builds * more solid related things * fix: import order | 1 个月前 | |
fix(tests): disable local coverage instrumentation (#10776) Disable local coverage instrumentation Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc> | 4 个月前 |

Hooks for fetching, caching and updating asynchronous data in Preact
Enjoy this library? Try the entire TanStack! TanStack Table, TanStack Router, TanStack Virtual, React Charts, React Ranger
Visit tanstack.com/query for docs, guides, API and more!
Quick Features
- Transport/protocol/backend agnostic data fetching (REST, GraphQL, promises, whatever!)
- Auto Caching + Refetching (stale-while-revalidate, Window Refocus, Polling/Realtime)
- Parallel + Dependent Queries
- Mutations + Reactive Query Refetching
- Multi-layer Cache + Automatic Garbage Collection
- Paginated + Cursor-based Queries
- Load-More + Infinite Scroll Queries w/ Scroll Recovery
- Request Cancellation
- Preact Suspense + Fetch-As-You-Render Query Prefetching -- Though not recommended because of the bulk preact/compat adds
- Dedicated Devtools