Closed alanxp closed 1 week ago
Error occurred prerendering page "/admin/regions/next-static-fallback". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: (0 , o.useState) is not a function or its return value is not iterable at t.useDynamicParams (/Users/alan/Developer/test/.next/server/app/admin/(auth)/regions/(editRegion)/[regionId]/page.js:22:62890)
Fixed it, all i had to do was separate the logic in a component with "use client"
Error occurred prerendering page "/admin/regions/next-static-fallback". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: (0 , o.useState) is not a function or its return value is not iterable at t.useDynamicParams (/Users/alan/Developer/test/.next/server/app/admin/(auth)/regions/(editRegion)/[regionId]/page.js:22:62890)