Skip to content

Commit

Permalink
place route updates in manifest.routes, not manifest itself (#7681)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Brophy <matt@brophy.org>
  • Loading branch information
pcattori and brophdawg11 authored Oct 16, 2023
1 parent bf2604c commit 03e00c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-dev/vite/static/refresh-utils.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const enqueueUpdate = debounce(async () => {
manifest = JSON.parse(JSON.stringify(__remixManifest));

routeUpdates.forEach(async (route) => {
manifest[route.id] = route;
manifest.routes[route.id] = route;

let imported = await __hmr_import(route.url + "?t=" + Date.now());
let routeModule = {
Expand Down

0 comments on commit 03e00c3

Please sign in to comment.