interface SuspenseBoundary

Properties

activeBranch

Signature
activeBranch: VNode | null;

anchor

Signature
anchor: RendererNode | null;

container

Signature
container: RendererElement;

deps

Signature
deps: number;

effects

Signature
effects: Function[];

hiddenContainer

Signature
hiddenContainer: RendererElement;

isHydrating

Signature
isHydrating: boolean;

isInFallback

Signature
isInFallback: boolean;

isSVG

Signature
isSVG: boolean;

isUnmounted

Signature
isUnmounted: boolean;

parent

Signature
parent: SuspenseBoundary | null;

parentComponent

Signature
parentComponent: ComponentInternalInstance | null;

pendingBranch

Signature
pendingBranch: VNode | null;

pendingId

Signature
pendingId: number;

timeout

Signature
timeout: number;

vnode

Signature
vnode: VNode<RendererNode, RendererElement, SuspenseProps>;

Methods

fallback(fallbackVNode)

Parameters
Name Type Description

fallbackVNode

VNode

Returns

void

Signature
fallback(fallbackVNode: VNode): void;

move(container, anchor, type)

Parameters
Name Type Description

container

RendererElement

anchor

RendererNode | null

type

MoveType

Returns

void

Signature
move(container: RendererElement, anchor: RendererNode | null, type: MoveType): void;

next()

Signature
next(): RendererNode | null;

registerDep(instance, setupRenderEffect)

Parameters
Name Type Description

instance

ComponentInternalInstance

setupRenderEffect

SetupRenderEffectFn

Returns

void

Signature
registerDep(instance: ComponentInternalInstance, setupRenderEffect: SetupRenderEffectFn): void;

resolve(force)

Parameters
Name Type Description

force

boolean

Returns

void

Signature
resolve(force?: boolean): void;

unmount(parentSuspense, doRemove)

Parameters
Name Type Description

parentSuspense

SuspenseBoundary | null

doRemove

boolean

Returns

void

Signature
unmount(parentSuspense: SuspenseBoundary | null, doRemove?: boolean): void;