Nextjs Client Cookie Pattern

Pattern for client components calling server actions to set cookies in Next.js. Covers the two-file pattern of a client component with user interaction (onClick, form submission) that calls a server action to modify cookies. Use when building features like authentication, preferences, or session management where client-side triggers need to set/modify server-side cookies. Use when this capability is needed.

tomevault-io 38e37ee 2 files · 10.0 KB Updated

File contents

tomevault-io/skills-registry/tree/main/wsimmonds--claude-nextjs-skills--nextjs-client-cookie-pattern commit 38e37ee739

Frequently asked questions

npx skillmds@latest add tomevault-io/nextjs-client-cookie-pattern