Post #2916087
2026-04-03 18:20 UTC
I have gotten quite fed up with #NextJS and I say this as a long-time zealot. There are so many ways to do very basic things like data fetching, data preloading, mutations, etc., and no well-established patterns for all of that. In practice, it feels like a light wrapper around #React (despite all the bloat), and you end up having to add a whole bunch of other libraries just to cover your bases (next-safe-action, nuqs, server-only, #TanStack Query/SWR, etc.). (1/2)
#coding #webdev #Vercel
Replies (1)
-
@mintydev@mastodon.social 2026-04-03 18:26
(2/2) And I'm actually convinced now that "use server" and "use client" were horrible conventions, evidenced by the fact that they had to patch this stuff up with "server-only" and React Taint. If you're going to do magic RPCs, just make it work like a special function, like TanStack's createServerFn(), which is much better for type safety. I've spent far too much time researching the *correct* way to fetch and mutate data in Next JS and then relaying that to my team to avoid security issues 😫