mutationOptions() adapter for @tanstack/react-query, type-safe mutations with error bridging.
-
-
Note: In production, you would pair this with a Route Handler (GET endpoint) so invalidateQueries can refetch fresh data from the server.
-
Note: The adapter's mutationOptions() automatically composes throwOnErrorto re-throw navigation errors during React's render phase and retry to skip them. No additional configuration is required.