Files
main/rules-v0-deprecated/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/next-js-15-state-management-rules.mdc
T
2025-03-03 23:40:27 +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.