Skip to content
Spinetab
Search
Ctrl
K
Cancel
Select theme
Dark
Light
Auto
Menu
Start here
Overview
Getting started
Choose your integration
Using subscriptions
Frameworks
Vite
Next.js
Astro
Nuxt
SvelteKit
React Router
Subscriptions
Polling
SSE
Fetch streams
WebSocket
GraphQL
Socket.IO
Library integrations
Apollo Client
TanStack Query
SWR
tRPC
AI SDK
Recipes
Direct subscriptions
Apollo Client
TanStack Query
SWR
tRPC
AI SDK
Authentication and recovery
Credentials and scopes
Status and health
Continuity and recovery
Execution modes
Configuration
Bundler configuration
Custom worker
Deployment
Reference
Sharing and identity
Defaults and diagnostics
Binding API
Compatibility
Limits
GitHub
Select theme
Dark
Light
Auto
Vite · React recipes
All recipes
Choose how to use subscriptions in Vite · React.
Framework
Vite
UI library
React
Vue
Svelte
Solid
Data layer
Component state
TanStack Query
SWR
Apollo Client
tRPC
AI SDK
Connection
HTTP polling
Server-sent events
WebSocket
Fetch stream
GraphQL over WebSocket
GraphQL over SSE
Socket.IO
Open recipe
→
Direct subscriptions
TanStack Query
SWR
Apollo Client
tRPC
AI SDK