add only render visible nodes & edges

This commit is contained in:
peterkogo
2024-12-19 20:43:01 +01:00
parent 6349290722
commit 848434c419
11 changed files with 191 additions and 191 deletions
@@ -2,7 +2,7 @@ import { useStore } from '$lib/store';
/**
* Hook for seeing if nodes are initialized
* @returns - nodesInitialized Writable
* @returns - reactive nodesInitialized
*/
export function useNodesInitialized() {
const { nodesInitialized } = $derived(useStore());
@@ -15,7 +15,7 @@ export function useNodesInitialized() {
/**
* Hook for seeing if the flow is initialized
* @returns - initialized Writable
* @returns - reactive initialized
*/
export function useInitialized() {
const { initialized } = $derived(useStore());