mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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]
This commit is contained in:
@@ -33,7 +33,6 @@ import {
|
||||
Type,
|
||||
ValidatedIdentifier,
|
||||
ValueKind,
|
||||
getHookKind,
|
||||
getHookKindForType,
|
||||
makeBlockId,
|
||||
makeIdentifierId,
|
||||
|
||||
Reference in New Issue
Block a user