MixinHandle

View Source

Summary

Runtime handle passed to mixin setup functions.

Mixin render callbacks receive host props with children and innerHTML removed. Returned mixin elements may patch host attributes and nested mix, but cannot replace the host subtree.

Signature

type MixinHandle<node, props> = TypedEventTarget<MixinHandleEventMap<node>> & {
  context: MixinContext;
  element: MixinElement<node, props>;
  frame: FrameHandle;
  id: string;
  signal: AbortSignal;
  queueTask: any;
  update: any;
};