fable-compiler / Fable.Lit

Write Fable Elmish apps with Lit
https://fable.io/Fable.Lit/
MIT License
91 stars 13 forks source link

Incongruence in documentation #55

Closed francotiveron closed 2 years ago

francotiveron commented 2 years ago

the namespace/module Lit.Elmish.HMR shown in this example doesn't seem to exist

open Elmish
open Lit

type Model = ..
type Msg = ..

let init() = ..
let update msg model = ..
let view model dispatch = ..

open Lit.Elmish
open Lit.Elmish.HMR

Program.mkProgram initialState update view
|> Program.withLit "app-container"
|> Program.run
alfonsogarciacaro commented 2 years ago

Thanks for catching this @francotiveron! I think we made Elmish.HMR compatible with Lit after writing that sample so you're right there should be no need for the Lit.Elmish.HMR namespace. I've removed the line 👍