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