@bian-womp/spark-workbench 0.3.27 → 0.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.cjs
CHANGED
|
@@ -5992,8 +5992,6 @@ const WorkbenchCanvasComponent = React.forwardRef((props, ref) => {
|
|
|
5992
5992
|
});
|
|
5993
5993
|
return () => off();
|
|
5994
5994
|
}, [wb]);
|
|
5995
|
-
// Memoize customData to prevent unnecessary recomputations
|
|
5996
|
-
const customData = React.useMemo(() => wb.getCustomData(), [wb]);
|
|
5997
5995
|
const rfData = React.useMemo(() => {
|
|
5998
5996
|
const out = toReactFlow(wb.def, wb.getPositions(), wb.getSizes(), wb.registry, {
|
|
5999
5997
|
showValues,
|
|
@@ -6011,7 +6009,7 @@ const WorkbenchCanvasComponent = React.forwardRef((props, ref) => {
|
|
|
6011
6009
|
selectedEdgeIds: new Set(selection.edges),
|
|
6012
6010
|
getDefaultNodeSize,
|
|
6013
6011
|
ui,
|
|
6014
|
-
customData,
|
|
6012
|
+
customData: wb.getCustomData(),
|
|
6015
6013
|
});
|
|
6016
6014
|
// Retain references for unchanged items
|
|
6017
6015
|
const stableNodes = retainStabilityById(prevNodesRef.current, out.nodes, isSameNode);
|
|
@@ -6117,7 +6115,6 @@ const WorkbenchCanvasComponent = React.forwardRef((props, ref) => {
|
|
|
6117
6115
|
edgeValidation,
|
|
6118
6116
|
resolveNodeType,
|
|
6119
6117
|
selection,
|
|
6120
|
-
customData,
|
|
6121
6118
|
ui,
|
|
6122
6119
|
getDefaultNodeSize,
|
|
6123
6120
|
wb,
|