MCPcopy Index your code
hub / github.com/caseywebdev/react-list / checkIfUseWrappedInAsyncCatch

Function checkIfUseWrappedInAsyncCatch

docs/index.js:23086–23091  ·  view source on GitHub ↗
(rejectedReason)

Source from the content-addressed store, hash-verified

23084 return thenable;
23085 }
23086 function checkIfUseWrappedInAsyncCatch(rejectedReason) {
23087 if (rejectedReason === SuspenseException)
23088 throw Error(
23089 "Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
23090 );
23091 }
23092 function pushDebugInfo(debugInfo) {
23093 var previousDebugInfo = currentDebugInfo;
23094 null != debugInfo &&

Callers 1

trackUsedThenableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…