From 531950c4085f8022cc8afb435e95e5ad8f6aa3f5 Mon Sep 17 00:00:00 2001 From: Anthony Potdevin Date: Mon, 2 Nov 2020 14:20:55 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=94=A7=20prefetch=20home?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homepage/Accounts.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/homepage/Accounts.tsx b/src/views/homepage/Accounts.tsx index 73620dc3..6dd95966 100644 --- a/src/views/homepage/Accounts.tsx +++ b/src/views/homepage/Accounts.tsx @@ -73,11 +73,15 @@ const RenderIntro = () => { }; export const Accounts = () => { - const { push } = useRouter(); + const { push, prefetch } = useRouter(); const [newAccount, setNewAccount] = React.useState( null ); + React.useEffect(() => { + prefetch(appendBasePath('/home')); + }, [prefetch]); + const { data: accountData, loading: loadingData,