fix: store actions blocking main thread
* map function overwriting nodes causes main thread to be blocked * instead use splice
This commit is contained in:
@@ -5,7 +5,7 @@ import { SetConnectionId } from './connection'
|
||||
|
||||
export interface RevueFlowActions {
|
||||
setElements: (elements: Elements) => void
|
||||
updateNodeDimensions: (updates: NodeDimensionUpdate[]) => void
|
||||
updateNodeDimensions: (update: NodeDimensionUpdate) => void
|
||||
updateNodePos: (payload: NodePosUpdate) => void
|
||||
updateNodePosDiff: (payload: NodeDiffUpdate) => void
|
||||
setUserSelection: (mousePos: XYPosition) => void
|
||||
|
||||
Reference in New Issue
Block a user