diff --git a/packages/react/src/components/ReactFlowProvider/index.tsx b/packages/react/src/components/ReactFlowProvider/index.tsx index d3c283c2..db4f69d2 100644 --- a/packages/react/src/components/ReactFlowProvider/index.tsx +++ b/packages/react/src/components/ReactFlowProvider/index.tsx @@ -1,12 +1,13 @@ import { useRef, type FC, type PropsWithChildren } from 'react'; import { type StoreApi } from 'zustand'; +import { UseBoundStoreWithEqualityFn } from 'zustand/traditional'; import { Provider } from '../../contexts/RFStoreContext'; import { createRFStore } from '../../store'; import type { ReactFlowState } from '../../types'; const ReactFlowProvider: FC> = ({ children }) => { - const storeRef = useRef | null>(null); + const storeRef = useRef> | null>(null); if (!storeRef.current) { storeRef.current = createRFStore();