T
TanStack3y ago
absent-sapphire

useSearch does not work when you pass a string to form, instead of `route.id`

https://github.com/TanStack/router/issues/767 useSearch: Typescript Error "Property 'email' does not exist on type '{} | {} | {} | { email: string; }'" Is there a way to go around this issue? The problem with using route.id, is that we run into circular dependency, and VITE hot reloading stops working https://github.com/TanStack/router/issues/510#issuecomment-1464933426 https://github.com/TanStack/router/issues/510#issuecomment-1738862832
GitHub
useSearch: Typescript Error "Property 'email' does not exist on typ...
Describe the bug I've got a typescript error using the useSearch hook. Property 'email' does not exist on type '{} | {} | {} | { email: string; }' Your Example Website or App ht...
GitHub
[WIP] How to better structure Route <-> Router to avoid circular re...
Describe the bug Given the following setup: // src/routes/a.tsx import { Route } from "@tanstack/react-router"; import { rootRoute } from "./_root"; import { router } from "...
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?