chore(react): cleanup exports

This commit is contained in:
moklick
2024-01-08 11:59:01 +01:00
parent 1efd3ee3d5
commit 30c975e39f
26 changed files with 64 additions and 72 deletions
+2 -4
View File
@@ -1,6 +1,6 @@
import { useEffect, useRef } from 'react';
import useReactFlow from './useReactFlow';
import { useReactFlow } from './useReactFlow';
import type { OnInit } from '../types';
/**
@@ -8,7 +8,7 @@ import type { OnInit } from '../types';
*
* @internal
*/
function useOnInitHandler(onInit: OnInit | undefined) {
export function useOnInitHandler(onInit: OnInit | undefined) {
const rfInstance = useReactFlow();
const isInitialized = useRef<boolean>(false);
@@ -19,5 +19,3 @@ function useOnInitHandler(onInit: OnInit | undefined) {
}
}, [onInit, rfInstance.viewportInitialized]);
}
export default useOnInitHandler;