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 31591a3 commit 98957bbCopy full SHA for 98957bb
packages/docusaurus/src/client/preload.ts
@@ -18,7 +18,7 @@ import {matchRoutes} from 'react-router-config';
18
*/
19
export default function preload(pathname: string): Promise<void[]> {
20
const matches = Array.from(new Set([pathname, decodeURI(pathname)]))
21
- .map(p => matchRoutes(routes, p))
+ .map((p) => matchRoutes(routes, p))
22
.flat();
23
24
return Promise.all(matches.map((match) => match.route.component.preload?.()));
0 commit comments