Skip to content

Commit 3adea9b

Browse files
committed
[eslint] Do not allow useEffectEvent fns to be called in arbitrary closures (facebook#33544)
Summary: useEffectEvent is meant to be used specifically in combination with useEffect, and using the feature in arbitrary closures can lead to surprising reactivity semantics. In order to minimize risk in the experimental rollout, we are going to restrict its usage to being called directly inside an effect or another useEffectEvent, effectively enforcing the function coloring statically. Without an effect system this is the best we can do. DiffTrain build for [97cdd5d](facebook@97cdd5d)
1 parent fe657a1 commit 3adea9b

32 files changed

+29651
-29202
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.2.0-native-fb-d742611c-20250603
1+
19.2.0-native-fb-97cdd5d3-20250710

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<5ba333cdabfedacaf43ebe3d5bc6b1a1>>
10+
* @generated SignedSource<<f7f345f50160a2fa575bed174fa760fc>>
1111
*/
1212

1313
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
404404
exports.useFormStatus = function () {
405405
return resolveDispatcher().useHostTransitionStatus();
406406
};
407-
exports.version = "19.2.0-native-fb-d742611c-20250603";
407+
exports.version = "19.2.0-native-fb-97cdd5d3-20250710";
408408
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<4c9ba4316d4a235a6fff958e9a060379>>
10+
* @generated SignedSource<<2ade998e2c2a0dc89117fbb76a26a2eb>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.2.0-native-fb-d742611c-20250603";
206+
exports.version = "19.2.0-native-fb-97cdd5d3-20250710";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<4c9ba4316d4a235a6fff958e9a060379>>
10+
* @generated SignedSource<<2ade998e2c2a0dc89117fbb76a26a2eb>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.2.0-native-fb-d742611c-20250603";
206+
exports.version = "19.2.0-native-fb-97cdd5d3-20250710";

0 commit comments

Comments
 (0)