Convert api data to client state waiting for a save action - TanStack