@@ -138,16 +138,30 @@ struct RootView: View {
138
138
)
139
139
)
140
140
)
141
+
142
+ NavigationLink (
143
+ " Web socket " ,
144
+ destination: WebSocketView (
145
+ store: Store (
146
+ initialState: . init( ) ,
147
+ reducer: webSocketReducer,
148
+ environment: WebSocketEnvironment (
149
+ mainQueue: QueueScheduler . main,
150
+ webSocket: . live
151
+ )
152
+ )
153
+ )
154
+ )
141
155
}
142
156
143
157
Section ( header: Text ( " Navigation " ) ) {
144
158
NavigationLink (
145
159
" Navigate and load data " ,
146
- destination: EagerNavigationView (
160
+ destination: NavigateAndLoadView (
147
161
store: Store (
148
- initialState: EagerNavigationState ( ) ,
149
- reducer: eagerNavigationReducer ,
150
- environment: EagerNavigationEnvironment (
162
+ initialState: NavigateAndLoadState ( ) ,
163
+ reducer: navigateAndLoadReducer ,
164
+ environment: NavigateAndLoadEnvironment (
151
165
mainQueue: QueueScheduler . main
152
166
)
153
167
)
@@ -156,11 +170,11 @@ struct RootView: View {
156
170
157
171
NavigationLink (
158
172
" Load data then navigate " ,
159
- destination: LazyNavigationView (
173
+ destination: LoadThenNavigateView (
160
174
store: Store (
161
- initialState: LazyNavigationState ( ) ,
162
- reducer: lazyNavigationReducer ,
163
- environment: LazyNavigationEnvironment (
175
+ initialState: LoadThenNavigateState ( ) ,
176
+ reducer: loadThenNavigateReducer ,
177
+ environment: LoadThenNavigateEnvironment (
164
178
mainQueue: QueueScheduler . main
165
179
)
166
180
)
@@ -169,17 +183,17 @@ struct RootView: View {
169
183
170
184
NavigationLink (
171
185
" Lists: Navigate and load data " ,
172
- destination: EagerListNavigationView (
186
+ destination: NavigateAndLoadListView (
173
187
store: Store (
174
- initialState: EagerListNavigationState (
188
+ initialState: NavigateAndLoadListState (
175
189
rows: [
176
190
. init( count: 1 , id: UUID ( ) ) ,
177
191
. init( count: 42 , id: UUID ( ) ) ,
178
192
. init( count: 100 , id: UUID ( ) ) ,
179
193
]
180
194
) ,
181
- reducer: eagerListNavigationReducer ,
182
- environment: EagerListNavigationEnvironment (
195
+ reducer: navigateAndLoadListReducer ,
196
+ environment: NavigateAndLoadListEnvironment (
183
197
mainQueue: QueueScheduler . main
184
198
)
185
199
)
@@ -188,17 +202,17 @@ struct RootView: View {
188
202
189
203
NavigationLink (
190
204
" Lists: Load data then navigate " ,
191
- destination: LazyListNavigationView (
205
+ destination: LoadThenNavigateListView (
192
206
store: Store (
193
- initialState: LazyListNavigationState (
207
+ initialState: LoadThenNavigateListState (
194
208
rows: [
195
209
. init( count: 1 , id: UUID ( ) ) ,
196
210
. init( count: 42 , id: UUID ( ) ) ,
197
211
. init( count: 100 , id: UUID ( ) ) ,
198
212
]
199
213
) ,
200
- reducer: lazyListNavigationReducer ,
201
- environment: LazyListNavigationEnvironment (
214
+ reducer: loadThenNavigateListReducer ,
215
+ environment: LoadThenNavigateListEnvironment (
202
216
mainQueue: QueueScheduler . main
203
217
)
204
218
)
@@ -207,11 +221,11 @@ struct RootView: View {
207
221
208
222
NavigationLink (
209
223
" Sheets: Present and load data " ,
210
- destination: EagerSheetView (
224
+ destination: PresentAndLoadView (
211
225
store: Store (
212
- initialState: EagerSheetState ( ) ,
213
- reducer: eagerSheetReducer ,
214
- environment: EagerSheetEnvironment (
226
+ initialState: PresentAndLoadState ( ) ,
227
+ reducer: presentAndLoadReducer ,
228
+ environment: PresentAndLoadEnvironment (
215
229
mainQueue: QueueScheduler . main
216
230
)
217
231
)
@@ -220,11 +234,11 @@ struct RootView: View {
220
234
221
235
NavigationLink (
222
236
" Sheets: Load data then present " ,
223
- destination: LazySheetView (
237
+ destination: LoadThenPresentView (
224
238
store: Store (
225
- initialState: LazySheetState ( ) ,
226
- reducer: lazySheetReducer ,
227
- environment: LazySheetEnvironment (
239
+ initialState: LoadThenPresentState ( ) ,
240
+ reducer: loadThenPresentReducer ,
241
+ environment: LoadThenPresentEnvironment (
228
242
mainQueue: QueueScheduler . main
229
243
)
230
244
)
0 commit comments