mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-23 17:28:23 +00:00
fix: force a cache invalidation using router.refresh
This commit is contained in:
parent
22381e5d5f
commit
c2da74c662
1 changed files with 3 additions and 0 deletions
|
|
@ -42,6 +42,9 @@ export function PostCreateButton({
|
|||
|
||||
const post = await createPost()
|
||||
|
||||
// This forces a cache invalidation.
|
||||
router.refresh()
|
||||
|
||||
router.push(`/editor/${post.id}`)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue