* 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:
parent
37c200571b
commit
b64f47cfe9
66 changed files with 5186 additions and 6250 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue