mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): use zod-less workflow builder when appropriate
This commit is contained in:
committed by
Kent Keirsey
parent
598241e0f2
commit
9359c03c3c
@ -1,7 +1,7 @@
|
||||
import { useAppSelector } from 'app/store/storeHooks';
|
||||
import type { WorkflowV2 } from 'features/nodes/types/workflow';
|
||||
import type { BuildWorkflowArg } from 'features/nodes/util/workflow/buildWorkflow';
|
||||
import { buildWorkflow } from 'features/nodes/util/workflow/buildWorkflow';
|
||||
import { buildWorkflowFast } from 'features/nodes/util/workflow/buildWorkflow';
|
||||
import { debounce } from 'lodash-es';
|
||||
import { atom } from 'nanostores';
|
||||
import { useEffect } from 'react';
|
||||
@ -9,7 +9,7 @@ import { useEffect } from 'react';
|
||||
export const $builtWorkflow = atom<WorkflowV2 | null>(null);
|
||||
|
||||
const debouncedBuildWorkflow = debounce((arg: BuildWorkflowArg) => {
|
||||
$builtWorkflow.set(buildWorkflow(arg));
|
||||
$builtWorkflow.set(buildWorkflowFast(arg));
|
||||
}, 300);
|
||||
|
||||
export const useWorkflowWatcher = () => {
|
||||
|
Reference in New Issue
Block a user