We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac36b2a commit b1bc047Copy full SHA for b1bc047
1 file changed
packages/debugger/src/structure/walker.ts
@@ -162,6 +162,24 @@ function mapOwner(
162
163
let first_owned: Solid.Owner | undefined
164
165
+ /*
166
+ solid.lazy(MyComponent) hoc
167
+ ↳ wrap (callback returned from lazy, called as a component)
168
+ ↳ memo
169
+ ↳ MyComponent
170
+ */
171
+ if (name === 'wrap' &&
172
+ typeof ((owner as Solid.Component).component as any)?.preload === 'function' &&
173
+ owner.owned &&
174
+ owner.owned.length === 1 &&
175
+ markOwnerType((first_owned = owner.owned[0]!)) === NodeType.Memo &&
176
+ first_owned.owned &&
177
+ first_owned.owned.length === 1 &&
178
+ markOwnerType((first_owned = first_owned.owned[0]!)) === NodeType.Component
179
+ ) {
180
+ return mapOwner(first_owned, parent)
181
+ }
182
+
183
/*
184
Context
185
0 commit comments