Skip to Content
You are viewing the v1 docs of Svelte Flow. You can find the latest version here.
ReferenceHooks

useNodesInitialized()

Source on GitHub 

This hook can be used to check if all nodes are initialized. It returns a signal with a boolean.

<script lang="ts"> import { useNodesInitialized } from '@xyflow/svelte'; const nodesInitialized = useNodesInitialized(); </script>

Signature

Parameters:

This function does not accept any parameters.

Returns:

A boolean that indicates if nodes are initialized

NameType
currentboolean
Last updated on