From 058a3a0c8beb0a6f2d5f0a7c19f5069a9633b7ba Mon Sep 17 00:00:00 2001 From: Cody Bennett Date: Tue, 12 Mar 2024 12:07:28 -0500 Subject: [PATCH] chore: revert changes --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 849f27d..0097959 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -194,7 +194,7 @@ export function useContextMap(): ContextMap { contextMap.clear() let node = fiber while (node) { - const context = node.type?._context ?? node.type + const context = node.type?._context if (context && context !== FiberContext && !contextMap.has(context)) { contextMap.set(context, ReactCurrentDispatcher?.current?.readContext(wrapContext(context))) }