vega-frontend-monorepo/apps/trading/components/app-loader/index.tsx
2022-03-30 13:05:41 +02:00

18 lines
448 B
TypeScript

import { useEagerConnect } from '../../hooks/use-vega-wallet-eager-connect';
import type { ReactNode } from 'react';
interface AppLoaderProps {
children: ReactNode;
}
/**
* Component to handle any app initialization, startup querys and other things
* that must happen for it can be used
*/
export function AppLoader({ children }: AppLoaderProps) {
// Get keys from vega wallet immediately
useEagerConnect();
return <>{children}</>;
}