chore(core): update composable jsdocs
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* 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