Docs
Cloudflare
Railway
CodeRabbit
AG Grid
SerpAPI
Netlify
WorkOS
OpenRouter
Clerk
Prisma
Electric
Unkey
Sentry
Cloudflare
Railway
CodeRabbit
AG Grid
SerpAPI
Netlify
WorkOS
OpenRouter
Clerk
Prisma
Electric
Unkey
Sentry
Integrations

ParsedHistoryState type

The ParsedHistoryState type represents a parsed state object. Additionally to HistoryState, it contains the index and the unique key of the route.

tsx
export type ParsedHistoryState = HistoryState & {
  key?: string // TODO: Remove in v2 - use __TSR_key instead
  __TSR_key?: string
  __TSR_index: number
}
export type ParsedHistoryState = HistoryState & {
  key?: string // TODO: Remove in v2 - use __TSR_key instead
  __TSR_key?: string
  __TSR_index: number
}