Set query data not working for optimistic updates - TanStack