Skip to content

Commit 7555c1d

Browse files
committed
remove @published annonation from state
1 parent 8324b2b commit 7555c1d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Since Action is defined as a store method, there are very few cases where the st
9797

9898
## Computed
9999

100-
Define the properties to connect to View. Because the store publish the state, all properties of the state are published every time. Therefore, when you want to publish only a specific property of the state, you can inject a value into that property in the computed step.
100+
Define the properties to connect to View. The store does not publish the state. Therefore, in order to publish a specific property of the state, a value can be injected into the property in the computed step.
101101

102102
```swift
103103
class CounterStore: Store<Counter> {

README_ko.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Action을 Store의 메서드로 정의하기 때문에 실제로 Store의 dispat
9595

9696
## Computed
9797

98-
View 에 연결할 속성을 정의합니다. Store는 state를 Publish 하기 때문에 매번 상태의 모든 속성이 Publish 됩니다. 따라서 상태의 특정 속성만 Publish 하고자할 때, Computed 단계에서 해당 속성에 값을 주입할 수 있습니다.
98+
View 에 연결할 속성을 정의합니다. Store는 state를 Publish 하지 않습니다. 따라서 상태의 특정 속성을 Publish 하기 위해서, Computed 단계에서 해당 속성에 값을 주입할 수 있습니다.
9999

100100
```swift
101101
class CounterStore: Store<Counter> {

Sources/Redux/Store.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import Combine
1313

1414
// @dynamicMemberLookup
1515
open class Store<S: State>: ObservableObject {
16-
@Published
1716
private(set) public var state: S
1817
private var workListBeforeCommit: [(inout S) -> Void] = []
1918
private var workListAfterCommit: [(inout S) -> Void] = []

0 commit comments

Comments
 (0)