fix(react): uncontrolled flows with Provider

This commit is contained in:
moklick
2024-02-13 16:12:31 +01:00
parent c1ccf119d6
commit 2860feec11
5 changed files with 29 additions and 5 deletions
@@ -26,7 +26,6 @@ export function ReactFlowProvider({
fitView?: boolean;
}) {
const storeRef = useRef<UseBoundStoreWithEqualityFn<StoreApi<ReactFlowState>> | null>(null);
if (!storeRef.current) {
storeRef.current = createRFStore({
nodes: initialNodes,