Elektrine lite

← Feed

@mintydev@mastodon.social

Post #3172438

2026-04-03 18:26 UTC

(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 😫

Replies (1)

  • @diegovsky@bolha.us 2026-04-03 19:53

    @mintydev@mastodon.social honestly I just use React Router and my mutations never go through the frontend server, as my backend is written in another language and all Comms is generated using openAPI, meaning I can do mutations both in the server and client I tried nextjs for a bit but the use server/client is so stupid and creates unnecessary complexity. RSC were a mistake.

    Open ##3172439