About architecture of RSC and Client
Unanswered
Dunker posted this in #help-forum
DunkerOP
Situation is: "having async functions in client components and these are not server actions to use in a form"
What is the solution for this kinda things as general.
Code blocks like this
What is the solution for this kinda things as general.
Code blocks like this
"use client"
async function do()
// Some async logic
...
return (<button onclick={do}
2 Replies
DunkerOP
Why I am asking, cuz at pages dir we could do anything we want as both async and any other. I d like to know how we can overcome this, cuz looks like my components will be client components more than server
DunkerOP
Bump