Don't reload root loader

This commit is contained in:
Kalle
2022-05-18 10:23:46 +03:00
parent 2e7bb5706d
commit d3623841de

View File

@@ -5,6 +5,7 @@ import type {
MetaFunction,
} from "@remix-run/node";
import { json } from "@remix-run/node";
import type { ShouldReloadFunction } from "@remix-run/react";
import {
Links,
LiveReload,
@@ -21,6 +22,8 @@ import commonStyles from "~/styles/common.css";
import { Layout } from "./components/layout";
import type { LoggedInUser } from "./core/DiscordStrategy.server";
export const unstable_shouldReload: ShouldReloadFunction = () => false;
export const links: LinksFunction = () => {
return [
{ rel: "stylesheet", href: resetStyles },