State syncing with local state - is there a better way? - TanStack