FragmentRef type
Home > @rimitive/view > FragmentRef
FragmentRef type
Section titled “FragmentRef type”Fragment ref node - logical container in the tree (no DOM element) Fragments participate in parent’s doubly-linked list and own their own child list
Signature:
export type FragmentRef<TElement> = BaseRef & { status: typeof STATUS_FRAGMENT; element: null; parent: ElementRef<TElement> | null; prev: NodeRef<TElement> | null; next: NodeRef<TElement> | null; firstChild: LinkedNode<TElement> | null; lastChild: LinkedNode<TElement> | null; cleanup?: () => void; attach(parent: ElementRef<TElement>, nextSibling: NodeRef<TElement> | null, svc?: unknown): void | (() => void);};References: BaseRef, STATUS_FRAGMENT, ElementRef, NodeRef, LinkedNode