Skip to content

Commit 7515067

Browse files
authored
Support __c contextRef
1 parent 9a669ff commit 7515067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adapter/10/bindings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export function getDisplayName(vnode: VNode, config: RendererConfig): string {
212212

213213
// Provider
214214
if ((c as any).sub) {
215-
const ctx = (type as any)._contextRef || (type as any).__;
215+
const ctx = (type as any)._contextRef || (type as any).__ || (type as any).__c;
216216
if (ctx && ctx.displayName) {
217217
return `${ctx.displayName}.Provider`;
218218
}

0 commit comments

Comments
 (0)