0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-16 22:50:20 +00:00
query/examples/react/nextjs
github-actions[bot] adc2543ade
ci: Version Packages (#10454)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
History 2026-04-11 19:54:13 +02:00
..
src chore(deps): update packages (#9003) 2025-04-12 11:58:55 +10:00
.gitignore v4 release (#3842) 2022-07-18 12:08:12 -06:00
next.config.js docs(examples): Modernise Next.js examples (#7706) 2024-07-10 14:48:50 +10:00
package.json ci: Version Packages (#10454) 2026-04-11 19:54:13 +02:00
README.md v4 release (#3842) 2022-07-18 12:08:12 -06:00
tsconfig.json Upgrade to Vitest v4 (#9862) 2026-01-18 17:01:56 +01:00

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 install
  • npm run dev