Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add useful optim comment
Browse files Browse the repository at this point in the history
slorber committed May 10, 2024
1 parent f6c1e32 commit 9b9ece5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/docusaurus/src/server/codegen/codegenRoutes.ts
Original file line number Diff line number Diff line change
@@ -323,6 +323,8 @@ type GenerateRouteFilesParams = {
// The generated filename per route must be unique to avoid conflicts
// See also https://github.com/facebook/docusaurus/issues/10125
export function generateRoutePropFilename(route: RouteConfig): string {
// TODO if possible, we could try to shorten the filename by removing
// the plugin routeBasePath prefix from the name
return `${docuHash(
route.path,
// Note: using hash(route.path + route.component) is not technically

0 comments on commit 9b9ece5

Please sign in to comment.