Compare commits

...

2 Commits

Author SHA1 Message Date
L-Sun
ac76e5b949 chore: enable webview debugging for Android 2025-10-02 21:48:29 +08:00
L-Sun
0bc1005b96 fix(core): infinitied loop 2025-09-26 15:48:24 +08:00
2 changed files with 3 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ const config: CapacitorConfig & AppConfig = {
releaseType: 'AAB',
},
adjustMarginsForEdgeToEdge: 'force',
webContentsDebuggingEnabled: true,
},
server: {
cleartext: true,

View File

@@ -22,8 +22,9 @@ export function useAsyncCallback<T extends any[]>(
const handleAsyncError = React.useContext(AsyncCallbackContext);
return React.useCallback(
(...args: any) => {
// oxlint-disable-next-line exhaustive-deps
callback(...args).catch(e => handleAsyncError(e));
},
[callback, handleAsyncError, ...deps] // eslint-disable-line react-hooks/exhaustive-deps
[...deps] // eslint-disable-line react-hooks/exhaustive-deps
);
}