From 7515067743d8e0a679265641fed16d84ecaf0f7c Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Tue, 7 Jan 2025 10:28:22 +0100 Subject: [PATCH] Support __c contextRef --- src/adapter/10/bindings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapter/10/bindings.ts b/src/adapter/10/bindings.ts index fee5c930..92e28481 100644 --- a/src/adapter/10/bindings.ts +++ b/src/adapter/10/bindings.ts @@ -212,7 +212,7 @@ export function getDisplayName(vnode: VNode, config: RendererConfig): string { // Provider if ((c as any).sub) { - const ctx = (type as any)._contextRef || (type as any).__; + const ctx = (type as any)._contextRef || (type as any).__ || (type as any).__c; if (ctx && ctx.displayName) { return `${ctx.displayName}.Provider`; }