StateEffect.map method
StateEffect › map
Official
Map this effect through a position mapping. Will returnundefined when that ends up deleting the effect. Signature:
map(mapping: ChangeDesc): StateEffect<Value> | undefinedParameters:
| Parameter | Type | Description |
|---|---|---|
| mapping | ChangeDesc | The change description. |
Returns: StateEffect<Value> | undefined — The mapped effect, or undefined.