useUpdateNodeInternals()
When you programmatically add or remove handles to a node or update a node’s handle position, you need to inform Svelte Flow about it by using this hook. This will update the internal dimensions of the node and properly reposition handles on the canvas if necessary.
<script lang="ts">
import { Handle, useUpdateNodeInternals } from '@xyflow/svelte';
const updateNodeInternals = useUpdateNodeInternals();
</script>
Signature
Parameters:This function does not accept any parameters.
Returns:Last updated on