mirror of
https://github.com/TanStack/query.git
synced 2026-11-18 19:33:22 +00:00
* chore(deps): unify and update '@eslint-react/eslint-plugin', 'eslint', 'svelte-check', 'vue-tsc' and '@tanstack/vue-query' versions * chore(pnpm-lock): run 'pnpm dedupe' |
History
|
|
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| .stackblitzrc | ||
| eslint.config.js | ||
| next.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Example
In this simple example, we integrate React-Query seamlessly with Next.js data fetching methods to fetch queries in the server and hydrate them in the browser.
In addition to fetching and mutating data, React-Query analyzes your queries and their results to construct a client-side cache of your data, which is kept up to date as further queries and mutations are run.
To run this example:
npm installnpm run dev