Switched getExtraProps to use findClosestFunction to get the component name. - #5851
Conversation
|
|
||
| export function findClosestFunction( | ||
| functions: FunctionDeclaration[], | ||
| function findClosestofSymbolDeclaration( |
There was a problem hiding this comment.
nit: findClosestofSymbol is smaller :)
| const { classes } = symbols; | ||
| if (!classes) { | ||
| return null; | ||
| } |
There was a problem hiding this comment.
we can move this to findClosestofSymbol
|
Wow, this looks slick @mmcote! Nice work! So I'm trying to test this on a React app (debugger.html) and I'm not seeing the Thanks! |
|
Hey @darkwing, I'm not a hundred percent sure why, and I can look into it, but Jason found a similar issue when debugging the debugger that the react component pane wasn't being triggered when in a component. He suggested switching to a isReactComponent that looks if the class extends I will push this once I look into the other calls of the new |
|
We can look into the debugger case separately... This logic works well and the code reads well. |
Summary of Changes
Screenshots
Before

After
