We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fa6692 commit 437888cCopy full SHA for 437888c
src/model/remoteConfig.ts
@@ -23,6 +23,7 @@ import {
23
saveNetwork,
24
} from '@/handlers/localstorage/globalSettings';
25
import { web3SetHttpProvider } from '@/handlers/web3';
26
+import { delay } from '@/utils/delay';
27
28
interface RainbowConfig extends Record<string, string | boolean | number> {
29
arbitrum_mainnet_rpc: string;
@@ -213,7 +214,7 @@ export async function initializeRemoteConfig(): Promise<void> {
213
214
minimumFetchIntervalMillis: 120_000,
215
});
216
await remoteConfig().setDefaults(DEFAULT_CONFIG);
- await queryClient.prefetchQuery(QUERY_PARAMS);
217
+ await Promise.race([queryClient.prefetchQuery(QUERY_PARAMS), delay(3000)]);
218
}
219
220
export function getRemoteConfig(): RainbowConfig {
0 commit comments