We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44e4460 commit d4f6d09Copy full SHA for d4f6d09
invokeai/frontend/web/src/features/dynamicPrompts/hooks/useDynamicPromptsWatcher.tsx
@@ -33,14 +33,16 @@ export const useDynamicPromptsWatcher = () => {
33
// Try to fetch the dynamic prompts and store in state
34
try {
35
const req = dispatch(
36
- utilitiesApi.endpoints.dynamicPrompts.initiate({
37
- prompt: positivePrompt,
38
- max_prompts: maxPrompts,
39
- })
+ utilitiesApi.endpoints.dynamicPrompts.initiate(
+ {
+ prompt: positivePrompt,
+ max_prompts: maxPrompts,
40
+ },
41
+ { subscribe: false }
42
+ )
43
);
44
45
const res = await req.unwrap();
- req.unsubscribe();
46
47
dispatch(promptsChanged(res.prompts));
48
dispatch(parsingErrorChanged(res.error));
0 commit comments