Skip to content

Commit 90e57ab

Browse files
committedMar 18, 2025
[eprh] Remove __EXPERIMENTAL__
`__EXPERIMENTAL__` flag doesn't have any use outside of the React repo. Let's remove these flags for now.
1 parent fb3ea75 commit 90e57ab

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed
 

‎compiler/packages/eslint-plugin-react-hooks/src/rules/ExhaustiveDeps.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -2056,10 +2056,7 @@ function isAncestorNodeOf(a: Node, b: Node): boolean {
20562056
}
20572057

20582058
function isUseEffectEventIdentifier(node: Node): boolean {
2059-
if (__EXPERIMENTAL__) {
2060-
return node.type === 'Identifier' && node.name === 'useEffectEvent';
2061-
}
2062-
return false;
2059+
return node.type === 'Identifier' && node.name === 'useEffectEvent';
20632060
}
20642061

20652062
function getUnknownDependenciesMessage(reactiveHookName: string): string {

‎compiler/packages/eslint-plugin-react-hooks/src/rules/RulesOfHooks.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@ function isInsideDoWhileLoop(node: Node | undefined): node is DoWhileStatement {
109109
}
110110

111111
function isUseEffectEventIdentifier(node: Node): boolean {
112-
if (__EXPERIMENTAL__) {
113-
return node.type === 'Identifier' && node.name === 'useEffectEvent';
114-
}
115-
return false;
112+
return node.type === 'Identifier' && node.name === 'useEffectEvent';
116113
}
117114

118115
function isUseIdentifier(node: Node): boolean {

0 commit comments

Comments
 (0)
Failed to load comments.