Skip to content

Commit

Permalink
help reduce some hmr race condition problems remix-run/remix#6919
Browse files Browse the repository at this point in the history
  • Loading branch information
xHomu committed Jul 24, 2023
1 parent 8c6fd69 commit db3afdf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ function createDevRequestHandler(): RequestHandler {
}

chokidar
.watch(BUILD_PATH, { ignoreInitial: true })
.watch(BUILD_PATH, {
ignoreInitial: true,
awaitWriteFinish: { stabilityThreshold: 200 },
})
.on("add", handleServerUpdate)
.on("change", handleServerUpdate);

Expand Down

0 comments on commit db3afdf

Please sign in to comment.