refactor(core): use useNodesInitialized to emit nodesInitialized
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user