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

Commit34b40da

Browse files
fix: add userSavedProxy to auto-selection useEffect dependencies
The auto-selection useEffect needs to re-run when userSavedProxy changesto properly detect when the user has no saved proxy and auto-selectionshould occur.Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
1 parentb63624f commit34b40da

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]);
214+
},[latenciesLoaded,proxiesResp,proxyLatencies,userSavedProxy]);
215215

216216
return(
217217
<ProxyContext.Provider

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp