mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
[globals] type useEffect return value as primitive
useEffect returns undefined
This commit is contained in:
1 parent
480c11bdb1
commit
3da32312e7
1 file changed
+1
-1
@@ -297,7 +297,7 @@ const BUILTIN_HOOKS: Array<[string, BuiltInType]> = [
|
||||
addHook(DEFAULT_SHAPES, [], {
|
||||
positionalParams: [],
|
||||
restParam: Effect.Freeze,
|
||||
returnType: { kind: "Poly" },
|
||||
returnType: { kind: "Primitive" },
|
||||
calleeEffect: Effect.Read,
|
||||
hookKind: "useEffect",
|
||||
returnValueKind: ValueKind.Frozen,
|
||||
|
||||
Reference in new issue
Block a user