override func viewDidLoad() { super.viewDidLoad() state .objectWillChange .receive(on: DispatchQueue.main) .sink { [weak self] _ in guard let self = self else { return } self.label.text = state.user.name } .store(in: &cancellables) }