Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion apps/addon-catalog/app/(home)/tag/[...name]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ const getCachedTagFromName = unstable_cache(
['tag-details'],
);

const getCachedTags = unstable_cache(
async () => fetchTagsData(),
['tags'],
);

const getCachedCategoryTags = unstable_cache(
async () => fetchTagsData({ isCategory: true }),
['category-tags'],
Expand Down Expand Up @@ -89,7 +94,7 @@ export default async function TagDetails({
}

export async function generateStaticParams() {
const tags = (await getCachedCategoryTags()) || [];
const tags = (await getCachedTags()) || [];
const listOfNames = tags.map((tag) => ({ name: [...tag.split('/')] }));

if (listOfNames.length === 0) {
Expand Down
Loading