Type errors with the useSearch hook strict:false - TanStack