Next.js Discord

Discord Forum

How can I use useEffect along with generateStaticParams() ?

Answered
Whimbrel posted this in #help-forum
Open in Discord
WhimbrelOP
How can I use useEffect along with generateStaticParams() ?
Answered by aardani
Create client component and import it to ur page.tsx
View full answer

3 Replies

Create client component and import it to ur page.tsx
Answer
Pass data to initial state of client component to get SEO running
WhimbrelOP
Gotcha! Thank you!