From 3da32312e7fff891330da287256a9973ad195e19 Mon Sep 17 00:00:00 2001 From: Sathya Gunasekaran Date: Mon, 13 Nov 2023 10:51:08 +0000 Subject: [PATCH] [globals] type useEffect return value as primitive useEffect returns undefined --- compiler/packages/babel-plugin-react-forget/src/HIR/Globals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/Globals.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/Globals.ts index 87fd5baa64..fa6c099dc9 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/Globals.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/Globals.ts @@ -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,