Fable.Lit.Elmish.Unofficial
2.19.0
dotnet add package Fable.Lit.Elmish.Unofficial --version 2.19.0
NuGet\Install-Package Fable.Lit.Elmish.Unofficial -Version 2.19.0
<PackageReference Include="Fable.Lit.Elmish.Unofficial" Version="2.19.0" />
<PackageVersion Include="Fable.Lit.Elmish.Unofficial" Version="2.19.0" />
<PackageReference Include="Fable.Lit.Elmish.Unofficial" />
paket add Fable.Lit.Elmish.Unofficial --version 2.19.0
#r "nuget: Fable.Lit.Elmish.Unofficial, 2.19.0"
#:package Fable.Lit.Elmish.Unofficial@2.19.0
#addin nuget:?package=Fable.Lit.Elmish.Unofficial&version=2.19.0
#tool nuget:?package=Fable.Lit.Elmish.Unofficial&version=2.19.0
Fable.Lit.Elmish.Unofficial
Elmish loops driving lit templates.
dotnet add package Fable.Lit.Elmish.Unofficial
An Elmish program that renders into an element:
open Lit.Elmish
Program.mkProgram init update view
|> Program.withLit "app"
|> Program.run
Or a loop that belongs to one component, started and kept by it:
[<HookComponent>]
let Counter () =
let model, dispatch = Hook.useElmish (init, update)
view model dispatch
Beyond upstream
Program.withLitHydratedadopts markup that was rendered on the server byLit.Server.Unofficialrather than replacing it, andProgram.withLitHydratedInShadowRootdoes the same inside a declarative shadow root.- Mounting twice on one element hands over instead of colliding, which is what a hot update is: the new program starts from the model the old one had reached.
Program.stopOnstops a program mounted on an element, disposing its subscriptions and closing the loop, so a dispatch afterwards cannot render into an element nobody is looking at.
Note that Hook.useElmish does not stop its program when the component disconnects: the
model is disposed if it happens to be IDisposable, and nothing else. Subscriptions in a
component outlive it unless you tear them down yourself, because disconnection cannot tell
being moved from being removed.
Why "Unofficial"
This is a republished build of Fable.Lit by Alfonso García-Caro Núñez and its contributors, packaged from a fork so that fixes can be used before they land upstream. The toolchain is .NET 10, Fable 5, Fable.Core 4 and lit 3.
Reference this or upstream Fable.Lit, never both: they share the Lit namespace.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Fable.Elmish (>= 5.0.2)
- Fable.Lit.Unofficial (>= 2.19.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.19.0 | 165 | 8/14/2026 |
| 2.18.0 | 77 | 8/14/2026 |
| 2.17.0 | 87 | 8/14/2026 |
| 2.16.0 | 86 | 8/14/2026 |
| 2.15.0 | 86 | 8/14/2026 |
| 2.14.0 | 85 | 8/13/2026 |
| 2.13.0 | 76 | 8/13/2026 |
| 2.12.0 | 80 | 8/13/2026 |
| 2.11.0 | 79 | 8/13/2026 |
| 2.10.0 | 84 | 8/13/2026 |
| 2.9.0 | 83 | 8/13/2026 |
| 2.8.0 | 87 | 8/13/2026 |
| 2.7.1 | 83 | 8/13/2026 |
| 2.7.0 | 92 | 8/13/2026 |
| 2.6.0 | 84 | 8/12/2026 |
| 2.5.0 | 98 | 8/12/2026 |
| 2.4.0 | 85 | 8/12/2026 |
| 2.3.0 | 96 | 8/12/2026 |
| 2.2.0 | 78 | 8/12/2026 |
| 2.1.0 | 76 | 8/12/2026 |
Unofficial fork of Fable.Lit. Toolchain moved to .NET 10, Fable 5, Fable.Core 4 and lit 3; event handlers no longer raise FS3884. See the repository for what differs from upstream.