next-safe-action TanStack Query Adapter Install Import Quick Start How It Works creates a complete object that bridges next-safe-action's result envelope to TanStack Query's error model: 1. Calls the safe action with input provided to / 2. Inspects the result envelope for or 3. Throws if either is present (a client-side error class, works) 4. Returns directly as TanStack Query's on success 5. Handles navigation errors ( , , etc.) by composing to always re-throw them during React's render phase When to Use Which | Scenario | Recommendation | |---|---| | New Next.js project without TanStack Que…