chore(react): cleanup exports
This commit is contained in:
@@ -12,7 +12,7 @@ import { type ReactFlowState } from '../types';
|
||||
* @param onlyRenderVisible
|
||||
* @returns array with visible edge ids
|
||||
*/
|
||||
function useVisibleEdgeIds(onlyRenderVisible: boolean): string[] {
|
||||
export function useVisibleEdgeIds(onlyRenderVisible: boolean): string[] {
|
||||
const edgeIds = useStore(
|
||||
useCallback(
|
||||
(s: ReactFlowState) => {
|
||||
@@ -52,5 +52,3 @@ function useVisibleEdgeIds(onlyRenderVisible: boolean): string[] {
|
||||
|
||||
return edgeIds;
|
||||
}
|
||||
|
||||
export default useVisibleEdgeIds;
|
||||
|
||||
@@ -20,10 +20,8 @@ const selector = (onlyRenderVisible: boolean) => (s: ReactFlowState) => {
|
||||
* @param onlyRenderVisible
|
||||
* @returns array with visible node ids
|
||||
*/
|
||||
function useVisibleNodeIds(onlyRenderVisible: boolean) {
|
||||
export function useVisibleNodeIds(onlyRenderVisible: boolean) {
|
||||
const nodeIds = useStore(useCallback(selector(onlyRenderVisible), [onlyRenderVisible]), shallow);
|
||||
|
||||
return nodeIds;
|
||||
}
|
||||
|
||||
export default useVisibleNodeIds;
|
||||
|
||||
Reference in New Issue
Block a user