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

Commitdcf98d7

Browse files
committed
comment
1 parent5427b61 commitdcf98d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎site/src/contexts/ProxyContext.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ export const ProxyProvider: FC<PropsWithChildren> = ({ children }) => {
136136
loadUserSelectedProxy(),
137137
proxyLatencies,
138138
// Do not auto select based on latencies, as inconsistent latencies can cause this
139-
// to behave poorly.
139+
// to change on each call. updateProxy should be stable when selecting a proxy to
140+
// prevent flickering.
140141
false,
141142
),
142143
);
@@ -150,7 +151,7 @@ export const ProxyProvider: FC<PropsWithChildren> = ({ children }) => {
150151
},[proxiesResp,proxyLatencies]);
151152

152153
// This useEffect will auto select the best proxy if the user has not selected one.
153-
// It must wait until all latencies are loaded to select based on latency. This does mean
154+
// It must wait until all latencies are loaded to select based on latency. This does mean
154155
// the first time a user loads the page, the proxy will "flicker" to the best proxy.
155156
//
156157
// Once the page is loaded, or the user selects a proxy, this will not run again.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp