Back to Router

TanStack Start - Streaming Data Example

examples/react/start-streaming-data-from-server-functions/README.md

1.166.7833 B
Original Source

TanStack Start - Streaming Data Example

A TanStack Start example demonstrating streaming data from server functions.

Start a new project based on this example

To start a new project based on this example, run:

sh
npx gitpick TanStack/router/tree/main/examples/react/start-streaming-data-from-server-functions start-streaming-data-from-server-functions

Getting Started

From your terminal:

sh
pnpm install
pnpm dev

This starts your app in development mode, rebuilding assets on file changes.

Build

To build the app for production:

sh
pnpm build

Streaming Data

This example demonstrates how to stream data from server functions to the client, enabling:

  • Progressive data loading
  • Real-time updates
  • Improved perceived performance