Skip to content

Commit c5b0a86

Browse files
committed
Update docs for Explicit shared state.
1 parent 27db3df commit c5b0a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ComposableArchitecture/Documentation.docc/Articles/SharingState.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ the feature's state:
8787
struct ParentFeature {
8888
@ObservableState
8989
struct State {
90-
@Shared var count: Int
90+
@Shared(value: 0) var count: Int
9191
// Other properties
9292
}
9393
// ...

0 commit comments

Comments
 (0)