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

Commitd07e472

Browse files
committed
fmt
1 parentb3102b7 commitd07e472

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

‎site/src/contexts/ProxyContext.test.tsx‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,23 @@ const TestingComponent = () => {
142142

143143
// TestingScreen just mounts some components that we can check in the unit test.
144144
constTestingScreen=()=>{
145-
const{ proxy, userProxy, isFetched, isLoading, latenciesLoaded, clearProxy, setProxy}=
146-
useProxy();
145+
const{
146+
proxy,
147+
userProxy,
148+
isFetched,
149+
isLoading,
150+
latenciesLoaded,
151+
clearProxy,
152+
setProxy,
153+
}=useProxy();
154+
155+
console.log(proxy);
147156
return(
148157
<>
149-
<divdata-testid="latenciesLoaded"title={latenciesLoaded.toString()}></div>
158+
<div
159+
data-testid="latenciesLoaded"
160+
title={latenciesLoaded.toString()}
161+
></div>
150162
<divdata-testid="isFetched"title={isFetched.toString()}></div>
151163
<divdata-testid="isLoading"title={isLoading.toString()}></div>
152164
<divdata-testid="preferredProxy"title={proxy.proxy?.id}></div>

‎site/src/contexts/ProxyContext.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export interface ProxyContextValue {
5454
// then the latency has not been fetched yet. Calculations happen async for each proxy in the list.
5555
// Refer to the returned report for a given proxy for more information.
5656
proxyLatencies:ProxyLatencies;
57-
// latenciesLoaded is true when the latencies have been initially loaded.
57+
// latenciesLoaded is true when the latencies have been initially loaded.
5858
// Once set to true, it will not be set to false again.
5959
latenciesLoaded:boolean;
6060
// refetchProxyLatencies will trigger refreshing of the proxy latencies. By default the latencies

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp