Skip to content

StateEffect.map method

StateEffect › map

Official

Map this effect through a position mapping. Will return undefined when that ends up deleting the effect.

Signature:

map(mapping: ChangeDesc): StateEffect<Value> | undefined

Parameters:

Parameter Type Description
mapping ChangeDesc The change description.

Returns: StateEffect<Value> | undefinedThe mapped effect, or undefined.