Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7ef638f

Browse files
fix: revert userSavedProxy from auto-selection useEffect dependencies
The auto-selection useEffect should not include userSavedProxy in itsdependencies as it should only run when latencies are loaded, not whenthe user proxy changes. The check inside the useEffect is sufficient.Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
1 parent34b40da commit7ef638f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎site/src/contexts/ProxyContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export const ProxyProvider: FC<PropsWithChildren> = ({ children }) => {
211211
saveUserSelectedProxy(best.proxy);
212212
updateProxy();
213213
}
214-
},[latenciesLoaded,proxiesResp,proxyLatencies,userSavedProxy]);
214+
},[latenciesLoaded,proxiesResp,proxyLatencies]);
215215

216216
return(
217217
<ProxyContext.Provider

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp