useNodesInitialized
Source on GitHub (opens in a new tab)
This hook can be used to check if all nodes are initialized. It returns a readable store with a boolean.
<script lang="ts">
import { useNodesInitialized } from '@xyflow/svelte';
const useNodesInitialized = useNodesInitialized();
</script>
Signature
Name | Type |
---|---|
#Returns |
|
Readable<boolean> Returns true when all nodes are initialized. When new nodes are added, this will be false again until all nodes are initialized. |