Skip to content

Commit

Permalink
Check for presence of __l (#495)
Browse files Browse the repository at this point in the history
If a defaultValue is specified we would erroneously take that as the contextRef rather than the actual ref
  • Loading branch information
JoviDeCroock authored Jan 15, 2025
1 parent 4d188ff commit b12ee9b
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).__ || (type as any).__l;
const ctx = (type as any)._contextRef || ('__l' in type ? (type as any).__l : (type as any).__);
if (ctx && ctx.displayName) {
return `${ctx.displayName}.Provider`;
}
Expand Down

0 comments on commit b12ee9b

Please sign in to comment.