hello hello
hello hello
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { | |
| ActionFunction, | |
| LinksFunction, | |
| LoaderFunction, | |
| MetaFunction | |
| } from "@remix-run/react"; | |
| import { | |
| Meta, | |
| Links, | |
| Scripts, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require("path"); | |
| const express = require("express"); | |
| const compression = require("compression"); | |
| const morgan = require("morgan"); | |
| const { createRequestHandler } = require("@remix-run/express"); | |
| //////////////////////////////////////////////////////////////////////////////// | |
| let app = express(); | |
| app.use(compression()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum State { | |
| Idle, | |
| LoadingJwt, | |
| Success, | |
| Error, | |
| } | |
| type Data = { error?: string; jwt?: string }; | |
| function Comp() { |
There are two primary approaches to page transitions (ignoring suspense's ditched attempt at a third)
- Indefinitely wait on the old screen
- Transition immediately to spinners/skeleton
Right now Remix has picked #1, but with a new export to a route module, we could support both.
Today, if you have this, Remix will wait for all data to load before displaying the page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fsp = require("fs").promises; | |
| const path = require("path"); | |
| const { execSync } = require("child_process"); | |
| const chalk = require("chalk"); | |
| const Confirm = require("prompt-confirm"); | |
| const jsonfile = require("jsonfile"); | |
| const semver = require("semver"); | |
| const packagesDir = path.resolve(__dirname, "../packages"); |