feat: sub-graph to use dynamic node generation

This commit is contained in:
zhsama
2026-01-13 22:28:30 +08:00
parent f57d2ef31f
commit 96ec176b83
16 changed files with 351 additions and 134 deletions

View File

@ -498,13 +498,9 @@ export const useNodesReadOnly = () => {
const isRestoring = useStore(s => s.isRestoring)
const getNodesReadOnly = useCallback((): boolean => {
const {
workflowRunningData,
historyWorkflowData,
isRestoring,
} = workflowStore.getState()
const state = workflowStore.getState()
return !!(workflowRunningData?.result.status === WorkflowRunningStatus.Running || historyWorkflowData || isRestoring)
return !!(state.workflowRunningData?.result.status === WorkflowRunningStatus.Running || state.historyWorkflowData || state.isRestoring)
}, [workflowStore])
return {