refactor(core): use useNodesInitialized to emit nodesInitialized

This commit is contained in:
braks
2024-02-15 17:46:21 +01:00
committed by Braks
parent fbb3f63134
commit ffdea45af4
2 changed files with 16 additions and 24 deletions
@@ -1,12 +0,0 @@
/**
* Composable for getting the visible node ids from the store.
*
* @internal
* @param onlyRenderVisible
* @returns array with visible node ids
*/
export function useVisibleNodeIds(onlyRenderVisible: boolean) {
const nodeIds = useStore(useCallback(selector(onlyRenderVisible), [onlyRenderVisible]), shallow)
return nodeIds
}