Merging dev into main #49
@@ -1,4 +1,4 @@
|
|||||||
import { create } from 'zustand';
|
import {create} from 'zustand';
|
||||||
import {
|
import {
|
||||||
applyNodeChanges,
|
applyNodeChanges,
|
||||||
applyEdgeChanges,
|
applyEdgeChanges,
|
||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
reconnectEdge, type Edge, type Connection
|
reconnectEdge, type Edge, type Connection
|
||||||
} from '@xyflow/react';
|
} from '@xyflow/react';
|
||||||
|
|
||||||
import { type FlowState } from './VisProgTypes.tsx';
|
import {type FlowState} from './VisProgTypes.tsx';
|
||||||
|
|
||||||
const initialNodes = [
|
const initialNodes = [
|
||||||
{
|
{
|
||||||
@@ -83,12 +83,12 @@ const useFlowStore = create<FlowState>((set, get) => ({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
setNodes: (nodes) => {
|
setNodes: (nodes) => {
|
||||||
set({ nodes });
|
set({nodes});
|
||||||
},
|
},
|
||||||
setEdges: (edges) => {
|
setEdges: (edges) => {
|
||||||
set({ edges });
|
set({edges});
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
export default useFlowStore;
|
export default useFlowStore;
|
||||||
Reference in New Issue
Block a user