Mapper function used by mapStates to map a StructuredSourceStateNodeConfig and a StatePath to an updated StructuredTransformedStateNodeConfig.
Implementations should likely have lots of ...s and concats to ensure that you are preserving the parts of the source state that you aren't direclty modifying.
...
concat
node: An StructuredSourceStateNodeConfig representing the current state .
node
statePath: 1 2 3 4 6
statePath
Imagining the numbers above as states, when processing node "4" in the tree above, paths will be [mapper(node 1), mapper(node 2)].
Generated using TypeDoc
Mapper function used by mapStates to map a StructuredSourceStateNodeConfig and a StatePath to an updated StructuredTransformedStateNodeConfig.
Implementations should likely have lots of
...
s andconcat
s to ensure that you are preserving the parts of the source state that you aren't direclty modifying.node
: An StructuredSourceStateNodeConfig representing the current state .statePath
: 1 2 3 4 6Imagining the numbers above as states, when processing node "4" in the tree above, paths will be [mapper(node 1), mapper(node 2)].