Skip to Content
💡 Legacy Notice: You're viewing Svelte Flow for Svelte 4. For the latest documentation, click here.
ReferenceHooksuseNodesInitialized()

useNodesInitialized()

Source on GitHub 

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

#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.
Last updated on