()
| 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." |
no test coverage detected
searching dependent graphs…