dillon1000/react

Commit

Warn for useFormState on initial render (#30292)

This was missed in the mount dev dispatcher. It was only in the rerender
dispatcher which means that it was only logged during the rerender.
Since DevTools can hide logs during rerenders, this hid the warning in
StrictMode.
Browse files
Changed paths5 files
First-parent comparison
M fixtures/flight/src/Counter.js ModifiedM packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js ModifiedM packages/react-dom/src/__tests__/ReactDOMFizzForm-test.js ModifiedM packages/react-reconciler/src/ReactFiberHooks.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMForm-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…