Chore/build npm (#9)
Co-authored-by: DigHuang <114602213+DigHuang@users.noreply.github.com> Co-authored-by: Felix <24791380+vcfgv@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -548,7 +548,10 @@ export function Skills() {
|
||||
setShowGatewayWarning(true);
|
||||
}, 1500);
|
||||
} else {
|
||||
setShowGatewayWarning(false);
|
||||
// Use setTimeout to avoid synchronous setState in effect
|
||||
timer = setTimeout(() => {
|
||||
setShowGatewayWarning(false);
|
||||
}, 0);
|
||||
}
|
||||
return () => clearTimeout(timer);
|
||||
}, [isGatewayRunning]);
|
||||
|
||||
Reference in New Issue
Block a user