Skip to content

Commit 1cb1ace

Browse files
committed
add router.refresh() when creating site
1 parent 2cf60e1 commit 1cb1ace

File tree

3 files changed

+16
-493
lines changed

3 files changed

+16
-493
lines changed

components/modal/create-site.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default function CreateSiteModal() {
1818
.then((site) => {
1919
toast.success(`Successfully created site!`);
2020
const { id } = site;
21+
router.refresh();
2122
router.push(`/site/${id}`);
2223
modal?.hide();
2324
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@tiptap/react": "^2.0.3",
2626
"@tiptap/starter-kit": "^2.0.3",
2727
"@tiptap/suggestion": "^2.0.3",
28-
"@tremor/react": "^3.0.1",
28+
"@tremor/react": "^3.2.6",
2929
"@vercel/analytics": "^1.0.1",
3030
"@vercel/blob": "^0.9.2",
3131
"@vercel/postgres": "^0.3.0",

0 commit comments

Comments
 (0)