The API reference is a Work in Progress and will be continuously improved and extended. We'd love to hear your feedback in our documentation repository.
Home > @edtr-io/plugin > asyncScalar
asyncScalar() function
Signature:export declare function asyncScalar<T, Temp>(
initial: T,
isTemporaryValue: (field: T | Temp) => boolean
): AsyncScalarStateType<T, Temp>
Parameters
Parameter | Type | Description |
---|---|---|
initial | T | The initialValue |
isTemporaryValue | (field: T | Temp) => boolean | Checks whether the given value is temporary |
AsyncScalarStateType<T, Temp>