Skip to content

Commit 437888c

Browse files
benisgoldibrahimtaveras00
authored andcommitted
3s race (#5302)
1 parent 9fa6692 commit 437888c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/model/remoteConfig.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
saveNetwork,
2424
} from '@/handlers/localstorage/globalSettings';
2525
import { web3SetHttpProvider } from '@/handlers/web3';
26+
import { delay } from '@/utils/delay';
2627

2728
interface RainbowConfig extends Record<string, string | boolean | number> {
2829
arbitrum_mainnet_rpc: string;
@@ -213,7 +214,7 @@ export async function initializeRemoteConfig(): Promise<void> {
213214
minimumFetchIntervalMillis: 120_000,
214215
});
215216
await remoteConfig().setDefaults(DEFAULT_CONFIG);
216-
await queryClient.prefetchQuery(QUERY_PARAMS);
217+
await Promise.race([queryClient.prefetchQuery(QUERY_PARAMS), delay(3000)]);
217218
}
218219

219220
export function getRemoteConfig(): RainbowConfig {

0 commit comments

Comments
 (0)