You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/SimplexArchitecture/Internal/ActionTransition.swift
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
import Foundation
2
2
3
-
/// ``ActionTransition`` represents a transition between states in a reducer. It captures the previous and next states, the associated side effect,effect context, and the action triggering the transition.
3
+
/// ``ActionTransition`` represents a transition between viewState in a reducer. It captures the previous and next viewState, the associated side effect,effect context, and the action triggering the transition.
4
4
structActionTransition<Reducer:ReducerProtocol>{
5
5
/// Represents a state. It includes the target state and the reducer state.
Copy file name to clipboardExpand all lines: Sources/SimplexArchitecture/Reducer/ReducerProtocol.swift
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@
19
19
/// }
20
20
/// }
21
21
///
22
-
/// @ScopeState
22
+
/// @ViewState
23
23
/// struct MyView: View {
24
24
/// @State var counter = 0
25
25
/// let store = Store(reducer: MyReducer())
@@ -64,7 +64,7 @@
64
64
/// }
65
65
/// }
66
66
///
67
-
/// @ScopeState
67
+
/// @ViewState
68
68
/// struct MyView: View {
69
69
/// @State var counter = 0
70
70
///
@@ -89,7 +89,7 @@
89
89
/// ```
90
90
///
91
91
publicprotocolReducerProtocol<Target>{
92
-
/// Target for the Reducer to change state, which must conform to ActionSendable and is automatically conformed to by the StoreBuilder or ScopeState macros
92
+
/// Target for the Reducer to change state, which must conform to ActionSendable and is automatically conformed to by the StoreBuilder or ViewState macros
93
93
associatedtypeTarget:ActionSendable<Self>
94
94
/// State used by Reducer. Since the View is not update when the value of ReducerState is changed, it is used for the purpose of improving performance, etc.
0 commit comments