[globals] type useEffect return value as primitive
useEffect returns undefined
Sathya Gunasekaran committed
Nov 13, 2023 at 10:51 UTC
3da32312e7fff891330da287256a9973ad195e19
1 file changed
+1
-1
compiler/packages/babel-plugin-react-forget/src/HIR/Globals.ts
+1
-1
@@ -297,7 +297,7 @@ const BUILTIN_HOOKS: Array<[string, BuiltInType]> = [
297
addHook(DEFAULT_SHAPES, [], {
298
positionalParams: [],
299
restParam: Effect.Freeze,
300
- returnType: { kind: "Poly" },
300
+ returnType: { kind: "Primitive" },
301
calleeEffect: Effect.Read,
302
hookKind: "useEffect",
303
returnValueKind: ValueKind.Frozen,