Using React Query for state management with React Flow - TanStack