Skip to content

Commit 2e40d01

Browse files
authored
refactor(router-core): router clearExpiredCache variable naming mistake (#4831)
Just correcting a variable naming mistake I made in #4826 because I confused `staleTime` and `gcTime`.
1 parent 4bb5674 commit 2e40d01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/router-core/src/router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2862,8 +2862,8 @@ export class RouterCore<
28622862
const isError = d.status === 'error'
28632863
if (isError) return true
28642864

2865-
const isStale = Date.now() - d.updatedAt >= gcTime
2866-
return isStale
2865+
const gcEligible = Date.now() - d.updatedAt >= gcTime
2866+
return gcEligible
28672867
}
28682868
this.clearCache({ filter })
28692869
}

0 commit comments

Comments
 (0)