Files
lunarfront-app/packages/admin/src/routes/_authenticated/index.tsx
Ryan Moon a84530e80e
Some checks failed
Build & Release / build (push) Failing after 32s
fix: replace invalid TanStack Router search casts with typed defaults
Newer TanStack Router enforces strict types on search params — 'search: {} as Record<string, unknown>' no longer satisfies routes with validateSearch. Replace all occurrences with the correct search shape for each destination route (pagination defaults for list routes, tab/field defaults for detail routes).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 10:33:36 -05:00

8 lines
283 B
TypeScript

import { createFileRoute, redirect } from '@tanstack/react-router'
export const Route = createFileRoute('/_authenticated/')({
beforeLoad: () => {
throw redirect({ to: '/accounts', search: { page: 1, limit: 25, q: undefined, sort: undefined, order: 'asc' as const } })
},
})