Next.js Discord

Discord Forum

About architecture of RSC and Client

Unanswered
Dunker posted this in #help-forum
Open in Discord
Avatar
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
"use client"

async function do()
  // Some async logic
...
return (<button onclick={do}

2 Replies

Avatar
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
Avatar
DunkerOP
Bump