Skip to content

Commit

Permalink
use cached helper
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Dec 23, 2024
1 parent b0d8333 commit 24c3a41
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/next/src/lib/metadata/resolve-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,7 @@ async function collectMetadata({
}
}

const cachedResolveMetadataItems = cache(resolveMetadataItems)
export { cachedResolveMetadataItems as resolveMetadataItems }
async function resolveMetadataItems(
const resolveMetadataItems = cache(async function (
tree: LoaderTree,
searchParams: Promise<ParsedUrlQuery>,
errorConvention: MetadataErrorType | undefined,
Expand All @@ -496,7 +494,7 @@ async function resolveMetadataItems(
createServerParamsForMetadata,
workStore
)
}
})

async function resolveMetadataItemsImpl(
metadataItems: MetadataItems,
Expand Down

0 comments on commit 24c3a41

Please sign in to comment.