浏览代码

fix(CUSTOM_MODELS):#3349 Dependency chatStore otherwise the session and view will not updated

durian 1 年之前
父节点
当前提交
261a8fd83b
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/components/chat.tsx

+ 1 - 2
app/components/chat.tsx

@@ -449,8 +449,7 @@ export function ChatActions(props: {
       );
       showToast(nextModel);
     }
-    // eslint-disable-next-line react-hooks/exhaustive-deps
-  }, [currentModel, models]);
+  }, [chatStore, currentModel, models]);
 
   return (
     <div className={styles["chat-input-actions"]}>