Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import { server } from "./mocks/server";
import { ENV } from "./utils/env.server";

const ABORT_DELAY = 5_000;
//https://remix.run/docs/en/2.13.1/start/future-flags#v3_singleFetch
export const streamTimeout = ABORT_DELAY;

if (ENV.NODE_ENV === "test") {
server.listen();
Expand Down Expand Up @@ -104,11 +106,7 @@ function handleBrowserRequest(
return new Promise((resolve, reject) => {
let shellRendered = false;
const { pipe, abort } = renderToPipeableStream(
<RemixServer
context={remixContext}
url={request.url}
abortDelay={ABORT_DELAY}
/>,
<RemixServer context={remixContext} url={request.url} />,
{
onShellReady() {
shellRendered = true;
Expand Down Expand Up @@ -141,6 +139,7 @@ function handleBrowserRequest(
},
);

setTimeout(abort, ABORT_DELAY);
//https://remix.run/docs/en/2.13.1/start/future-flags#v3_singleFetch
setTimeout(abort, streamTimeout + 1000);
});
}
4 changes: 2 additions & 2 deletions app/routes/devices.$id.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default function DeviceConfig() {
exportData(evolverConfig);
}}
>
Download
download
</button>
<button
className="btn btn-primary"
Expand All @@ -189,7 +189,7 @@ export default function DeviceConfig() {
setSearchParams(params);
}}
>
Edit
edit
</button>
</div>
)}
Expand Down
3 changes: 2 additions & 1 deletion app/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
@import '@fontsource/b612-mono';
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;
@plugin daisyui;
Loading