Next.js Discord

Discord Forum

Proper way to handle server actions on client side.

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
Normally, we send in AbortController to fetch, so it can be cancelled when in Dev mode double calls or when user navigate away from the current page while it is still fetching.

However, there is no way to handle this if we use server actions on the client side?

3 Replies

Brown bearOP
How about the double call in dev mode useEffect?
@Brown bear How about the double call in dev mode useEffect?
Knopper gall
What about it?