MCPcopy Create free account
hub / github.com/caseywebdev/react-list / warnOnUseFormStateInDev

Function warnOnUseFormStateInDev

docs/index.js:24376–24384  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24374 );
24375 }
24376 function warnOnUseFormStateInDev() {
24377 var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1);
24378 didWarnAboutUseFormState.has(componentName) ||
24379 (didWarnAboutUseFormState.add(componentName),
24380 console.error(
24381 "ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",
24382 componentName
24383 ));
24384 }
24385 function throwInvalidHookError() {
24386 throw Error(
24387 "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."

Callers 1

index.jsFile · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…