Removing monads. Fixes #884 (#886)

* Removing monads. Fixes #884

* Fixing post fetching.

* Dont show not_logged_in error for navbar.

* Adding the lemmy-js-client RC.

* Fixing registration application mode
This commit is contained in:
Dessalines 2023-01-04 11:56:24 -05:00 committed by GitHub
parent 37c200571b
commit b64f47cfe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
66 changed files with 5186 additions and 6250 deletions

View file

@ -1,10 +1,9 @@
import { hydrate } from "inferno-hydrate";
import { BrowserRouter } from "inferno-router";
import { GetSiteResponse } from "lemmy-js-client";
import { App } from "../shared/components/app/app";
import { convertWindowJson, initializeSite } from "../shared/utils";
import { initializeSite } from "../shared/utils";
const site = convertWindowJson(GetSiteResponse, window.isoData.site_res);
const site = window.isoData.site_res;
initializeSite(site);
const wrapper = (
@ -13,4 +12,7 @@ const wrapper = (
</BrowserRouter>
);
hydrate(wrapper, document.getElementById("root"));
let root = document.getElementById("root");
if (root) {
hydrate(wrapper, root);
}