mirror of
https://github.com/apotdevin/thunderhub.git
synced 2024-11-19 18:00:05 +01:00
chore: 🔧 prefetch home
This commit is contained in:
parent
02f84a71af
commit
531950c408
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user