Next.js Discord

Discord Forum

Using async functions/method in client component

Unanswered
Dutch posted this in #help-forum
Open in Discord
DutchOP
What's the go-to way for using async methods in a client component? I've tried using the use hook but that results in hydration errors

1 Reply

use useEffect hook or third party fetching libraries like react-query