T
TanStack2y ago
extended-salmon

Property 'query' does not exist on type 'Partial <{}>'

I'm using React with Typescript, when I try to extract the search parameter from the Router State > Location > Search Query object it returns the typescript error shown in the title. Does anyone know how to resolve this? Code below: const searchParam = useRouterState({select: (s)=>s.location.search.query})
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?