fix(mobx): properly persist login state

This commit is contained in:
Paul
2021-12-24 12:00:24 +00:00
parent ef1ddb7771
commit 189d0b5ff9
5 changed files with 12 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ import Locale from "./Locale";
import Theme from "./Theme";
import Intermediate from "./intermediate/Intermediate";
import Client from "./revoltjs/RevoltClient";
import SyncManager from "./revoltjs/SyncManager";
/**
* This component provides all of the application's context layers.
@@ -29,7 +30,10 @@ export default function Context({ children }: { children: Children }) {
<Router basename={import.meta.env.BASE_URL}>
<Locale>
<Intermediate>
<Client>{children}</Client>
<Client>
{children}
<SyncManager />
</Client>
</Intermediate>
</Locale>
<Theme />