chore(core): cleanup

This commit is contained in:
braks
2024-02-05 07:51:12 +01:00
committed by Braks
parent 0e03b16328
commit eca0447d3b
3 changed files with 29 additions and 1 deletions
+14
View File
@@ -3,3 +3,17 @@
---
Add `updateNodeData` action
## 🧙 Example
```ts
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 })
```