access 'previous' state of search params? - TanStack