Managing cross-component state