mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nuxt): don't use or assignment (#8299)
This commit is contained in:
parent
aa76d7bbac
commit
d3f3f9f348
@ -41,7 +41,7 @@ export async function preloadRouteComponents (to: string, router: Router & { _ro
|
||||
if (router._routePreloaded.has(to)) { return }
|
||||
router._routePreloaded.add(to)
|
||||
|
||||
const promises = router._preloadPromises ||= []
|
||||
const promises = router._preloadPromises = router._preloadPromises || []
|
||||
|
||||
if (promises.length > 4) {
|
||||
// Defer adding new preload requests until the existing ones have resolved
|
||||
|
Loading…
Reference in New Issue
Block a user