Files
main/rules-v0/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/next-js-15-state-management-rules.mdc
T
2025-02-27 00:04:07 +05:30

8 lines
372 B
Plaintext

---
description: Defines the recommended state management strategies for Next.js 15 applications, including server and client contexts.
globs: app/**/*
---
- Use `useActionState` instead of deprecated `useFormState`.
- Leverage enhanced `useFormStatus` with new properties (data, method, action).
- Implement URL state management with 'nuqs'.
- Minimize client-side state.