Reactjs – can I use server actions as SWR fetcher?
I wanted to know if this method is optimal or not. Because I did not find any documentation about it. example a server action to get the current user information actions/whoami.ts "use server"; import { auth, prisma } from "@/lib/auth";…