| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 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 };
|