Documentation

Relay integration

Use route preparation with Relay preload flows.

Relay integration is documented as an application pattern rather than a router hard dependency. The router can prepare route data while the application owns its Relay environment and query references.

Use this guide when:

  • a route must preload data before rendering;
  • route params or filters feed Relay variables;
  • Suspense boundaries should cover both route code and data loading;
  • navigation should preserve typed URL state.

The original repository guide lives in docs/router-relay.md and remains the source for detailed examples until this site fully replaces that guide.