synchronous state with query? is this ok? - TanStack