Skip to content

Commit

Permalink
Merge pull request #90 from stack-wuh/feat-performance
Browse files Browse the repository at this point in the history
fixed(Index): 修复文档内容缓存问题
  • Loading branch information
stack-wuh committed Nov 1, 2022
2 parents a868944 + 91df738 commit 98173e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/post/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function useData(id: string | string[] | undefined) {
return fetcher(`${API_ARTICLE_ITEM}${params.id}`)
}, {
defaultParams: [{ id }],
cacheKey: API_ARTICLE_ITEM,
cacheKey: `${API_ARTICLE_ITEM}_${id}`,
})

return {
Expand Down

1 comment on commit 98173e7

@vercel
Copy link

@vercel vercel bot commented on 98173e7 Nov 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.