Reactjs – Not allowed to use async/await while using serverActions in Client component in next.js
Building an infinite scroll in next.js, I am trying to call my serverAction to loadMoreData and using async/await with it to wait for the API call and get result. Getting an error: "async/await is not yet supported in Client Components,…