updateTree
react-mosaic-component / updateTree
Function: updateTree()
updateTree<
T>(tree,updates):MosaicNode<T>
Defined in: libs/react-mosaic-component/src/lib/util/mosaicUpdates.ts:82
Applies a list of updates to a tree and returns the new tree.
Type Parameters
T
T extends MosaicKey
Parameters
tree
MosaicNode<T>
The tree to be updated.
updates
MosaicUpdate<T>[]
An array of MosaicUpdate objects.
Returns
MosaicNode<T>
The new, updated tree.