Error AtlasError Documentation and Resolution

React Suspense Exception from useActionState caught incorrectly

Suspense Exception: This is not a real error! It's an implementation detail of useActionState to interrupt the current render.

React raised a Suspense Exception from useActionState because the interruption was captured incorrectly instead of being rethrown or allowed to suspend as designed.

React error #542runtime
Suspense Exception: This is not a real error! It's an implementation detail of useActionState to interrupt the current render.
  • useActionState was called inside a try/catch that swallowed the Suspense interruption.
  • Suspense control flow from useActionState was treated like a real runtime error.
  • Render-time async handling was mixed into the component in an unsupported way.
  1. Move useActionState outside try/catch blocks that capture render-time suspension.
  2. If the exception is intercepted, rethrow it immediately.
  3. Use an Error Boundary for actual action failures instead of catching the suspension signal.
React Docs: Minified React error #542
React error #542 Suspense Exception from useActionState: causes and fixes | Error Atlas