From d3623841dec8bcd600abdbf8652885b564c3040e Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Wed, 18 May 2022 10:23:46 +0300 Subject: [PATCH] Don't reload root loader --- app/root.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/root.tsx b/app/root.tsx index 13ddf5ee5..c78cd5cbe 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -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 },