refactor(react): use size instead of dimensions, cleanup defaul node handling
This commit is contained in:
@@ -26,7 +26,7 @@ function Wrapper({
|
||||
}
|
||||
|
||||
return (
|
||||
<ReactFlowProvider nodes={nodes} edges={edges} width={width} height={height}>
|
||||
<ReactFlowProvider initialNodes={nodes} initialEdges={edges} initialWidth={width} initialHeight={height}>
|
||||
{children}
|
||||
</ReactFlowProvider>
|
||||
);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import { forwardRef, type CSSProperties } from 'react';
|
||||
import cc from 'classcat';
|
||||
import {
|
||||
|
||||
Reference in New Issue
Block a user