Skip to content

Commit 21f4652

Browse files
committed
Right way to pass tags
1 parent 4ffd35b commit 21f4652

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

web/app/[locale]/(pages)/news/page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ const getInitialResponse = unstable_cache(
7474
})
7575
return response
7676
},
77-
['newsroom'],
77+
undefined,
78+
{
79+
tags: ['newsroom'],
80+
},
7881
)
7982

8083
export default async function NewsroomPage({

web/app/[locale]/(pages)/nyheter/page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ const getInitialResponse = unstable_cache(
4040
})
4141
return response
4242
},
43-
['newsroom'],
43+
undefined,
44+
{
45+
tags: ['newsroom'],
46+
},
4447
)
4548

4649
export async function generateMetadata({

0 commit comments

Comments
 (0)