Skip to Content
πŸ“£ We just released Svelte Flow 1.0 Alpha β€” try it out and give us your feedback!
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