From 22ea0429d8b28635da41b4fe6cb71c87328346fb Mon Sep 17 00:00:00 2001 From: Joe Savona Date: Tue, 3 Sep 2024 15:55:25 -0700 Subject: [PATCH] Update on "[compiler] Override type provider for hook-like names" If an imported name is hook-like but a type provider provides a non-hook type, we now override the returned value and treat it as a generic custom hook. This is meant as an extra check to prevent miscompilation. [ghstack-poisoned] --- .../packages/babel-plugin-react-compiler/src/HIR/Environment.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts b/compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts index 84bfd509ff..4134fadf1d 100644 --- a/compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts +++ b/compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts @@ -33,7 +33,6 @@ import { Type, ValidatedIdentifier, ValueKind, - getHookKind, getHookKindForType, makeBlockId, makeIdentifierId,