Skip to content

Commit

Permalink
Support __c contextRef
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored Jan 7, 2025
1 parent 9a669ff commit 7515067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter/10/bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}
Expand Down

0 comments on commit 7515067

Please sign in to comment.