mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-30 18:52:12 +08:00
refactor: debugLog for frontend (#5587)
This commit is contained in:
@@ -13,6 +13,7 @@ import { useListen } from "@/hooks/use-listen";
|
||||
import { cmdTestDelay, downloadIconCache } from "@/services/cmds";
|
||||
import delayManager from "@/services/delay";
|
||||
import { showNotice } from "@/services/noticeService";
|
||||
import { debugLog } from "@/utils/debug";
|
||||
|
||||
import { TestBox } from "./test-box";
|
||||
|
||||
@@ -107,7 +108,7 @@ export const TestItem = ({
|
||||
|
||||
return () => {
|
||||
if (unlistenFn) {
|
||||
console.log(
|
||||
debugLog(
|
||||
`TestItem for ${id} unmounting or url changed, cleaning up test-all listener.`,
|
||||
);
|
||||
unlistenFn();
|
||||
|
||||
Reference in New Issue
Block a user