We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8ee7ac commit 6d6a745Copy full SHA for 6d6a745
packages/router-generator/src/generator.ts
@@ -424,6 +424,7 @@ export class Generator {
424
}
425
426
if (!writeRouteTreeFile) {
427
+ this.swapCaches()
428
return
429
430
@@ -473,7 +474,10 @@ export class Generator {
473
474
475
476
- // now that we have finished this run, we can finally swap the caches
477
478
+ }
479
+
480
+ private swapCaches() {
481
this.routeNodeCache = this.routeNodeShadowCache
482
this.routeNodeShadowCache = new Map()
483
0 commit comments