NextJS 'use server' Trap (Accidentally Leaking Data)

Опубликовано: 04 Июль 2024
на канале: Jolly Coding
9,795
394

Ever since React moved onto the server, the new directives "use client" and "use server" have caused some confusion. Lets look at how the top level directive in an actions.ts file may leak some data you may not want, and why this is more an issue of developer confusion rather than an issue with NextJS.

Rhys Tweet: https://x.com/RhysSullivan/status/180...

-------
🐦 Twitter (X): https://jollycod.ing/x
🤓 Personal Site: https://jollycod.ing/me
💻 GitHub: https://jollycod.ing/git
JollyUI: https://jollycod.ing/ui
Where I Work: https://jollycod.ing/work