-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance: Rework debug view #523
Conversation
Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
import { JSONTree } from 'react-json-tree'; | ||
|
||
const CallFrames = ({ calls }: { calls: Record<string, CallFrame> | null }) => { | ||
if (!calls) return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you move this line to be placed right before the final return statement?
or add a TODO to do so?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont follow. Isn't this a short-circuit, the point of which is to just quit this function early if calls is null/empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spoke offline. i follow now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty big PR but I couldn't see anything I'd personally change. I like the use of react json tree here, its a natural fit.
Side note - when I tested this locally I saw a severity high issue in the npm audit. Will have a follow-up PR that patches that up. |
8571a85
Ryan had approved, but wanted a TODO comment. I added that. I'm going to merge now just to close the loop here. |
Signed-off-by: Craig Jellick craig@acorn.io