tuil
ReferencePackages@mwillbanks/tuil-inkAPI

useOptionalExternalStore

function exported by @mwillbanks/tuil-ink.

View rawEdit

function

Public function exported by @mwillbanks/tuil-ink.

export function useOptionalExternalStore<TSnapshot>(
  store: ExternalSnapshotStore<TSnapshot> | undefined,
  emptySnapshot: TSnapshot,
): TSnapshot;

Members

This declaration has no public members.

Parameters

MemberTypeRequiredDescriptionRelated types
storeExternalSnapshotStore<TSnapshot> | undefinedYesSupplies the store value as ExternalSnapshotStore<TSnapshot> | undefined.ExternalSnapshotStore
emptySnapshotTSnapshotYesSupplies the emptySnapshot value as TSnapshot.

Returns

TSnapshot — Returns a value that satisfies TSnapshot.

Related types: —

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-ink

On this page