@@ -1169,7 +1169,7 @@ export class RouterCore<
11691169 }
11701170
11711171 if ( needsLocationUpdate && this . stores ) {
1172- this . stores . location . set ( ( ) => this . latestLocation )
1172+ this . stores . location . set ( this . latestLocation )
11731173 }
11741174
11751175 if (
@@ -2362,10 +2362,10 @@ export class RouterCore<
23622362
23632363 // Ingest the new matches
23642364 this . batch ( ( ) => {
2365- this . stores . status . set ( ( ) => 'pending' )
2366- this . stores . statusCode . set ( ( ) => 200 )
2367- this . stores . isLoading . set ( ( ) => true )
2368- this . stores . location . set ( ( ) => this . latestLocation )
2365+ this . stores . status . set ( 'pending' )
2366+ this . stores . statusCode . set ( 200 )
2367+ this . stores . isLoading . set ( true )
2368+ this . stores . location . set ( this . latestLocation )
23692369 this . stores . setPendingMatches ( pendingMatches )
23702370 // If a cached match moved to pending matches, remove it from cached matches
23712371 this . stores . setCachedMatches ( nextCachedMatches )
@@ -2468,8 +2468,8 @@ export class RouterCore<
24682468 )
24692469 : currentMatches
24702470
2471- this . stores . isLoading . set ( ( ) => false )
2472- this . stores . loadedAt . set ( ( ) => Date . now ( ) )
2471+ this . stores . isLoading . set ( false )
2472+ this . stores . loadedAt . set ( Date . now ( ) )
24732473 /**
24742474 * When committing new matches, cache any exiting matches that are still usable.
24752475 * Routes that resolved with `status: 'error'` or `status: 'notFound'` are
@@ -2534,8 +2534,8 @@ export class RouterCore<
25342534 : 200
25352535
25362536 this . batch ( ( ) => {
2537- this . stores . statusCode . set ( ( ) => nextStatusCode )
2538- this . stores . redirect . set ( ( ) => redirect )
2537+ this . stores . statusCode . set ( nextStatusCode )
2538+ this . stores . redirect . set ( redirect )
25392539 } )
25402540 }
25412541
@@ -2569,7 +2569,7 @@ export class RouterCore<
25692569 newStatusCode = 500
25702570 }
25712571 if ( newStatusCode !== undefined ) {
2572- this . stores . statusCode . set ( ( ) => newStatusCode )
2572+ this . stores . statusCode . set ( newStatusCode )
25732573 }
25742574 }
25752575
@@ -2651,7 +2651,7 @@ export class RouterCore<
26512651 )
26522652 }
26532653 } else {
2654- cachedMatch . set ( ( ) => next )
2654+ cachedMatch . set ( next )
26552655 }
26562656 }
26572657 } )
0 commit comments