| 1 | |
| 2 | * react-router v8.3.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 | */
|
| 11 | import { BoundaryShell } from "./errorBoundaries.js";
|
| 12 | import { useFrameworkContext } from "./components.js";
|
| 13 | import * as React$1 from "react";
|
| 14 |
|
| 15 | function RemixRootDefaultHydrateFallback() {
|
| 16 | let { nonce } = useFrameworkContext();
|
| 17 | return React$1.createElement(BoundaryShell, {
|
| 18 | title: "Loading...",
|
| 19 | renderScripts: true
|
| 20 | }, 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 |
|
| 33 | export { RemixRootDefaultHydrateFallback };
|