elmish / hmr

Hot Module Replacement for Elmish apps
https://elmish.github.io/hmr
Other
28 stars 9 forks source link

Missing `runWith` in v3.0.2 #16

Closed theimowski closed 5 years ago

theimowski commented 5 years ago

Description

opening Fable.Elmish.HMR shadows Program.run but not Program.runWith because there's no such function in HMR

Repro code

Program.mkProgram init update view
#if DEBUG
|> Program.withConsoleTrace
#endif
|> Program.withReact "elmish-app"
#if DEBUG
|> Program.withDebugger
#endif
|> Program.runWith "argument"

Expected and actual results

Full page reload occurs when modifying source file, while hot replace should be performed

Related information