diff --git a/src/app/actions/toy.ts b/src/app/actions/toy.ts index 6d88497..836950f 100644 --- a/src/app/actions/toy.ts +++ b/src/app/actions/toy.ts @@ -55,11 +55,11 @@ export async function createOrUpdateToy( savedToy = createToy(formData); } + // Revalidate paths to show the new data. + // This tells Next.js to re-fetch the data on the next request for these paths across all locales. revalidatePath('/dashboard/my-toys'); revalidatePath(`/toys/${savedToy.id}`); revalidatePath('/'); - revalidatePath(`/[locale]/toys/${savedToy.id}`, 'page'); - revalidatePath(`/[locale]/dashboard/my-toys`, 'page'); return { diff --git a/toyshare.db b/toyshare.db index 775b8e3..80c2414 100644 Binary files a/toyshare.db and b/toyshare.db differ diff --git a/toyshare.db-shm b/toyshare.db-shm index fb039ab..91a6282 100644 Binary files a/toyshare.db-shm and b/toyshare.db-shm differ diff --git a/toyshare.db-wal b/toyshare.db-wal index 11c5ff5..b7855fb 100644 Binary files a/toyshare.db-wal and b/toyshare.db-wal differ