diff --git a/components/post-create-button.tsx b/components/post-create-button.tsx index ee283ce..15ae49a 100644 --- a/components/post-create-button.tsx +++ b/components/post-create-button.tsx @@ -42,6 +42,9 @@ export function PostCreateButton({ const post = await createPost() + // This forces a cache invalidation. + router.refresh() + router.push(`/editor/${post.id}`) }