Get the type of the search from a specific route ? - TanStack