Skip to content

Commit be09e8a

Browse files
kfuledead-claudia
authored andcommitted
[refactor] router: comment out "div" parameter
In the `update()` function, even if the `comp` parameter is undefined, it falls back to "div". This commit slightly reduces the bundle size and optimizes the component fallback process.
1 parent 53234d2 commit be09e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module.exports = function($window, mountRedraw) {
104104
return payload.onmatch(data.params, path, matchedRoute)
105105
}).then(update, path === fallbackRoute ? null : reject)
106106
}
107-
else update("div")
107+
else update(/* "div" */)
108108
return
109109
}
110110
}

0 commit comments

Comments
 (0)