diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11eda468c0eb..c799f374b424 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: push: branches: - - master + - main pull_request: branches: - '*' diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index e0f3e8d7e4a4..80e808bc6cfe 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -3,7 +3,7 @@ name: Format on: push: branches: - - master + - main jobs: swift_format: diff --git a/Sources/ComposableArchitecture/ViewStore.swift b/Sources/ComposableArchitecture/ViewStore.swift index a8f5147c39a3..802dfe939510 100644 --- a/Sources/ComposableArchitecture/ViewStore.swift +++ b/Sources/ComposableArchitecture/ViewStore.swift @@ -66,7 +66,11 @@ public final class ViewStore: ObservableObject { } /// The current state. - @Published public internal(set) var state: State + public private(set) var state: State { + willSet { + self.objectWillChange.send() + } + } let _send: (Action) -> Void