@tempots/dom

storedProp() function

Creates a stored property that persists its value in a storage mechanism.

Signature:

storedProp: <T>({ key, defaultValue, store, serialize, deserialize, equals, onLoad, }: StoredPropOptions<T>) => Prop<T>

Parameters

Parameter

Type

Description

{ key, defaultValue, store, serialize, deserialize, equals, onLoad, }

StoredPropOptions<T>

Returns: Prop<T>

  • The created stored property.