Keep data from last query is the next query fails - TanStack