chore: check configuration on initial and change values

This commit is contained in:
jialin
2025-04-02 14:19:06 +08:00
parent b1d7bb9fd7
commit f8a8314476
13 changed files with 84 additions and 75 deletions
+7 -1
View File
@@ -413,6 +413,11 @@ export const useCheckCompatibility = () => {
const debounceHandleValuesChange = _.debounce(handleOnValuesChange, 300);
const cancelEvaluate = () => {
checkTokenRef.current?.cancel();
checkTokenRef.current = null;
};
useEffect(() => {
return () => {
checkTokenRef.current?.cancel();
@@ -429,6 +434,7 @@ export const useCheckCompatibility = () => {
submitAnyway,
generateGPUIds,
handleEvaluate,
setWarningStatus
setWarningStatus,
cancelEvaluate
};
};