MCPcopy Create free account
hub / github.com/Effect-TS/effect / shell

Function shell

packages/effect/test/ui/html/HotReload.test.ts:712–722  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

710
711 // A fallback on show that holds a child is drawn again, child included.
712 const shell = (label: string) =>
713 Html.component({ name: "Shell", model: Schema.Number, message: Msg })
714 .make({
715 init: () => 0,
716 update: ($) => $.model,
717 view: (h) =>
718 h.div(
719 h.span(label),
720 Broken(h, { key: "b", fallback: () => Row(h, { key: "r" }) })
721 )
722 })
723 const Shell = shell("a")
724 yield* inContainer("swap-fallback", (el) =>
725 Effect.gen(function*() {

Callers 1

HotReload.test.tsFile · 0.85

Calls 3

spanMethod · 0.80
makeMethod · 0.65
RowClass · 0.50

Tested by

no test coverage detected