An open API service indexing awesome lists of open source software.

https://github.com/secondthunder/posts-next-react-query

Example project of using React Query + Next (App Router) with Suspense capabilities. Powered by JSONPlaceholder API
https://github.com/secondthunder/posts-next-react-query

Last synced: 10 months ago
JSON representation

Example project of using React Query + Next (App Router) with Suspense capabilities. Powered by JSONPlaceholder API

Awesome Lists containing this project

README

          

# posts-next-react-query

This is an example project of displaying placeholder posts using NextJS (App Router) with React Query v5, utilizing some Suspense capabilities

> [!NOTE]
> [Demo](https://posts-next-react-query.vercel.app) on Vercel

This app uses [techniques](https://tanstack.com/query/latest/docs/framework/react/guides/advanced-ssr) for using React Query with Server Components by using prefetching and Suspense/HydrationBoundary for non-blocking and responsive UI

## Usage

```sh
git clone https://github.com/SecondThundeR/posts-next-react-query.git
cd posts-next-react-query
pnpm install
pnpm dev # or pnpm dev:turbo
```