Replies: 1 comment
-
@JordanMarr might know. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For some context, here's a sample where
Program.withTimings
can transparently wrap theMsg
type to add a timestamp inTimedMsg
, it's a simplified version of what I was really trying to achieve.As it stands here, the Program uses
ElmishWindow
which:Counter.update
andCounter.view
.|> Program.withTimings
line (the times can be seen in the output fromProgram.withConsoleTrace
).If the app type is changed to the component / Elmish hook approach by switching
.Configure<ComponentApp>()
for.Configure<ElmishApp>()
Program.withTimings
cannot be passed toctx.useElmish
because themapProgram
parameter forces the input and output message types to be the same.I've tried making my own version of
useElmish
with'msg
and'msg2'
but it has some knock-on effects onElmishState
'sDispatch
member.Something like:
Does anyone have any advice on how I could achieve this?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions