feat(frontend): server side rendering to improve performance

This commit is contained in:
Elias Schneider
2023-02-07 10:21:25 +01:00
parent 82f204e8a9
commit 38de022215
14 changed files with 137 additions and 71 deletions

View File

@@ -24,7 +24,7 @@ import userService from "../../services/user.service";
import toast from "../../utils/toast.util";
const Account = () => {
const { user, setUser } = useUser();
const { user, refreshUser } = useUser();
const modals = useModals();
const accountForm = useForm({
@@ -81,8 +81,6 @@ const Account = () => {
),
});
const refreshUser = async () => setUser(await userService.getCurrentUser());
return (
<>
<Meta title="My account" />