Skip to content

Commit 4e9f2a8

Browse files
authored
feat(config): RPC bootstrap hardening, socket alignment, and exhaustive tests (tinyhumansai#1313)
1 parent abec992 commit 4e9f2a8

10 files changed

Lines changed: 974 additions & 34 deletions

File tree

app/src/pages/Welcome.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { useState } from 'react';
33
import OAuthProviderButton from '../components/oauth/OAuthProviderButton';
44
import { oauthProviderConfigs } from '../components/oauth/providerConfigs';
55
import RotatingTetrahedronCanvas from '../components/RotatingTetrahedronCanvas';
6+
import { clearBackendUrlCache } from '../services/backendUrl';
67
import { clearCoreRpcUrlCache, testCoreRpcConnection } from '../services/coreRpcClient';
78
import { useDeepLinkAuthState } from '../store/deepLinkAuthState';
89
import {
@@ -39,6 +40,7 @@ const Welcome = () => {
3940

4041
storeRpcUrl(normalized);
4142
clearCoreRpcUrlCache();
43+
clearBackendUrlCache();
4244
setRpcUrlError(null);
4345
setSaveSuccess(true);
4446

@@ -48,6 +50,7 @@ const Welcome = () => {
4850
const handleResetRpcUrl = () => {
4951
clearStoredRpcUrl();
5052
clearCoreRpcUrlCache();
53+
clearBackendUrlCache();
5154
setRpcUrl(getDefaultRpcUrl());
5255
setRpcUrlError(null);
5356
setSaveSuccess(false);
@@ -71,6 +74,7 @@ const Welcome = () => {
7174
setSaveSuccess(true);
7275
storeRpcUrl(normalized);
7376
clearCoreRpcUrlCache();
77+
clearBackendUrlCache();
7478
} else {
7579
setRpcUrlError(`Connection failed: ${response.status} ${response.statusText}`);
7680
}

0 commit comments

Comments
 (0)