Lifecycle hook that receives an Effect-wrapped HTMLElement for piping. The element is wrapped in Effect.succeed() so Element helpers can be piped.
The hook can return an Effect that requires Scope and RendererContext, which are available during component lifecycle.
// Pipe Element helpersonEnter: (el) => el.pipe( Element.setStyles({ animation: "none" }), Element.focus,)// Or use Effect.gen for complex logiconEnter: (el) => Effect.gen(function* () { yield* el.pipe(Element.focus); yield* doSomethingElse();}) Copy
// Pipe Element helpersonEnter: (el) => el.pipe( Element.setStyles({ animation: "none" }), Element.focus,)// Or use Effect.gen for complex logiconEnter: (el) => Effect.gen(function* () { yield* el.pipe(Element.focus); yield* doSomethingElse();})
Lifecycle hook that receives an Effect-wrapped HTMLElement for piping. The element is wrapped in Effect.succeed() so Element helpers can be piped.
The hook can return an Effect that requires Scope and RendererContext, which are available during component lifecycle.