@@ -13547,11 +13547,13 @@ if (__DEV__) {
1354713547    var didWarnUncachedGetSnapshot;
1354813548    var didWarnAboutUseWrappedInTryCatch;
1354913549    var didWarnAboutAsyncClientComponent;
13550+     var didWarnAboutUseFormState;
1355013551
1355113552    {
1355213553      didWarnAboutMismatchedHooksForComponent = new Set();
1355313554      didWarnAboutUseWrappedInTryCatch = new Set();
1355413555      didWarnAboutAsyncClientComponent = new Set();
13556+       didWarnAboutUseFormState = new Set();
1355513557    } // The effect "instance" is a shared object that remains the same for the entire
1355613558    // lifetime of an effect. In Rust terms, a RefCell. We use it to store the
1355713559    // "destroy" function that is returned from an effect, because that is stateful.
@@ -13696,6 +13698,24 @@ if (__DEV__) {
1369613698      }
1369713699    }
1369813700
13701+     function warnOnUseFormStateInDev() {
13702+       {
13703+         var componentName = getComponentNameFromFiber(
13704+           currentlyRenderingFiber$1
13705+         );
13706+ 
13707+         if (!didWarnAboutUseFormState.has(componentName)) {
13708+           didWarnAboutUseFormState.add(componentName);
13709+ 
13710+           error(
13711+             "ReactDOM.useFormState has been deprecated and replaced by " +
13712+               "React.useActionState. Please update %s to use React.useActionState.",
13713+             componentName
13714+           );
13715+         }
13716+       }
13717+     }
13718+ 
1369913719    function warnIfAsyncClientComponent(Component) {
1370013720      {
1370113721        // This dev-only check only works for detecting native async functions,
@@ -16924,6 +16944,7 @@ if (__DEV__) {
1692416944          function useFormState(action, initialState, permalink) {
1692516945            currentHookNameInDev = "useFormState";
1692616946            updateHookTypesDev();
16947+             warnOnUseFormStateInDev();
1692716948            return mountActionState(action, initialState);
1692816949          };
1692916950
@@ -17092,6 +17113,7 @@ if (__DEV__) {
1709217113        ) {
1709317114          currentHookNameInDev = "useFormState";
1709417115          updateHookTypesDev();
17116+           warnOnUseFormStateInDev();
1709517117          return updateActionState(action);
1709617118        };
1709717119
@@ -17265,6 +17287,7 @@ if (__DEV__) {
1726517287        ) {
1726617288          currentHookNameInDev = "useFormState";
1726717289          updateHookTypesDev();
17290+           warnOnUseFormStateInDev();
1726817291          return rerenderActionState(action);
1726917292        };
1727017293
@@ -36345,7 +36368,7 @@ if (__DEV__) {
3634536368      return root;
3634636369    }
3634736370
36348-     var ReactVersion = "19.0.0-www-classic-698b36f3 ";
36371+     var ReactVersion = "19.0.0-www-classic-eb2e3f4c ";
3634936372
3635036373    function createPortal$1(
3635136374      children,
0 commit comments