UNPKG

1.15 kBJavaScriptView Raw
1/**
2 * react-router v8.0.0
3 *
4 * Copyright (c) Remix Software Inc.
5 *
6 * This source code is licensed under the MIT license found in the
7 * LICENSE.md file in the root directory of this source tree.
8 *
9 * @license MIT
10 */
11import { BoundaryShell } from "./errorBoundaries.js";
12import { useFrameworkContext } from "./components.js";
13import * as React$1 from "react";
14//#region lib/dom/ssr/fallback.tsx
15function RemixRootDefaultHydrateFallback() {
16 let { nonce } = useFrameworkContext();
17 return /* @__PURE__ */ React$1.createElement(BoundaryShell, {
18 title: "Loading...",
19 renderScripts: true
20 }, /* @__PURE__ */ React$1.createElement("script", {
21 nonce,
22 dangerouslySetInnerHTML: { __html: `
23 console.log(
24 "💿 Hey developer 👋. You can provide a way better UX than this " +
25 "when your app is loading JS modules and/or running \`clientLoader\` " +
26 "functions. Check out https://reactrouter.com/start/framework/route-module#hydratefallback " +
27 "for more information."
28 );
29 ` }
30 }));
31}
32//#endregion
33export { RemixRootDefaultHydrateFallback };