Interface UseMountedSourceResult<T>Experimental

Result of useMountedSource.

interface UseMountedSourceResult<T> {
    diagnostics: null | MountedSourceDiagnostics;
    error: unknown;
    handle: null | MountedSource<T>;
    isMounting: boolean;
    refresh: (() => void);
}

Type Parameters

  • T = Record<string, unknown>

Properties

diagnostics: null | MountedSourceDiagnostics

Diagnostics snapshot from the mount and the latest applied update.

error: unknown

Mount or update failure, undefined while healthy.

handle: null | MountedSource<T>

The live bridge handle, or null while unmounted / mounting / failed.

isMounting: boolean

True while the initial mount (or a structural remount) is in flight.

refresh: (() => void)

Re-execute the current filter and diff-update the mounted data in place.