If I configure my page.tsx (Under app folder) with 'use client', and do a fetch, it could make API call to my springboot backend, but 'use server' fails without any error. However according to official doc, 'use client' is not recommended with async calls.
Why 'use server' fails to fetch data?
Sorry if it's a beginner quesiton but I didn't find reference in the official doc.
#'use server' fail to fetch data from API.
5 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
Do you see errors on the terminal?
No, if I do 'use server' simply nothing shows up
'use server' is for server action only
it won't make your component from a client component to server component