Next.js Discord

Discord Forum

how to use useEffect in server actions? that'll stop SSR then

Answered
Sloth bear posted this in #help-forum
Open in Discord
Avatar
Sloth bearOP
how can I do that? then SSR will stop, why am I using react then?
Answered by Anay-208 | Ping For Help
another use client file, import it to use server file
View full answer

8 Replies

Avatar
Anay-208 | Ping For Help
why not create another file for it
Avatar
Anay-208 | Ping For Help
another use client file, import it to use server file
Answer
Avatar
Anay-208 | Ping For Help
SSR will be on
Avatar
Sloth bearOP
Oh sorry, didn't think of it. How stupid it was of me
Avatar
Anay-208 | Ping For Help
Can you mark my message as a solution by going to apps>mark solution
thanks
Avatar
Sloth bearOP
And thanks for quick response
Avatar
Anay-208 | Ping For Help
feel free to ping me after creating a #help-forum when you need any help