File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,11 @@ module internal LoggingViewModelArgs =
2727 nameChain = " " }
2828
2929
30- type internal ViewModelArgs < 'model , 'msg > =
31- { initialModel: 'model
32- dispatch: 'msg -> unit
33- loggingArgs: LoggingViewModelArgs }
30+ type ViewModelArgs < 'model , 'msg > =
31+ internal { initialModel: 'model ; dispatch: 'msg -> unit ; loggingArgs: LoggingViewModelArgs }
3432
35- module internal ViewModelArgs =
36- let create initialModel dispatch nameChain loggingArgs =
33+ module ViewModelArgs =
34+ let internal create initialModel dispatch nameChain loggingArgs =
3735 { initialModel = initialModel
3836 dispatch = dispatch
3937 loggingArgs = LoggingViewModelArgs.map nameChain loggingArgs }
@@ -42,8 +40,10 @@ module internal ViewModelArgs =
4240 { initialModel = v.initialModel |> mapModel
4341 dispatch = mapMsg >> v.dispatch
4442 loggingArgs = v.loggingArgs }
45-
46- let simple initialModel =
43+
44+ let createWithoutLogging initialModel dispatch =
4745 { initialModel = initialModel
48- dispatch = ignore
46+ dispatch = dispatch
4947 loggingArgs = LoggingViewModelArgs.none }
48+
49+ let simple initialModel = createWithoutLogging initialModel ignore
You can’t perform that action at this time.
0 commit comments