Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/router/integrations/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ By default, the integration wraps your router with a `QueryClientProvider`. If y
- `useSuspenseQuery`: runs on the server during SSR when its data is required and will be streamed to the client as it resolves.
- `useQuery`: does not execute on the server; it will fetch on the client after hydration. Use this for data that is not required for SSR.

<!-- ::start:framework -->

# React
Comment thread
CBell045 marked this conversation as resolved.

```tsx
// Suspense: executes on server and streams
const { data } = useSuspenseQuery(postsQuery)
Expand All @@ -85,9 +89,7 @@ const { data } = useSuspenseQuery(postsQuery)
const { data, isLoading } = useQuery(postsQuery)
```

<!-- ::start:framework -->

# React
# Solid

```tsx
// Suspense: executes on server and streams
Expand Down