chore: 🔧 prefetch home

This commit is contained in:
Anthony Potdevin 2020-11-02 14:20:55 +01:00
parent 02f84a71af
commit 531950c408
No known key found for this signature in database
GPG Key ID: 4403F1DFBE779457

View File

@ -73,11 +73,15 @@ const RenderIntro = () => {
};
export const Accounts = () => {
const { push } = useRouter();
const { push, prefetch } = useRouter();
const [newAccount, setNewAccount] = React.useState<ServerAccountType | null>(
null
);
React.useEffect(() => {
prefetch(appendBasePath('/home'));
}, [prefetch]);
const {
data: accountData,
loading: loadingData,