TanStackT
TanStack8mo ago
9 replies
static-pink

Missing types when using _pathlessLayout

export const Route = createFileRoute({
  component: Component,
  validateSearch: zodValidator(searchSchema),
  loaderDeps: ({ search }) => search, //  here search is marked as any
});


Quick one, shouldn't the addition of a validation, type the search params?
Was this page helpful?