Skip to content

Commit

Permalink
fix GET /__REMIX_ASSETS_MANIFEST loop remix-run#5663
Browse files Browse the repository at this point in the history
  • Loading branch information
conundrumer authored Mar 28, 2023
1 parent 9a0601b commit be55aa6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/remix-dev/devServer2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@ export let serve = async (
let host = getHost();
let appServerOrigin = `http://${host ?? "localhost"}:${dev.appServerPort}`;

let currentBuildHash;
let waitForAppServer = async (buildHash: string) => {
currentBuildHash = buildHash;
while (true) {
if (buildHash !== currentBuildHash) return;
// TODO AbortController signal to cancel responses?
let assetsManifest = await fetchAssetsManifest(
appServerOrigin,
Expand Down

0 comments on commit be55aa6

Please # to comment.