Skip to content

Commit

Permalink
chore: revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Mar 12, 2024
1 parent 414377e commit 058a3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
}
Expand Down

0 comments on commit 058a3a0

Please sign in to comment.