Files
vue-flow/.changeset/nice-suits-pull.md
T
2024-02-05 07:51:12 +01:00

397 B

@vue-flow/core
@vue-flow/core
minor

Add updateNodeData action

🧙 Example

const { updateNodeData } = useVueFlow()

updateNodeData('1', { foo: 'bar' })

// or using a function to update the data
updateNodeData('1', (data) => ({ ...data, foo: 'bar' }))

// passing options - `replace` will replace the data instead of merging it
updateNodeData('1', { foo: 'bar' }, { replace: true })