Skip to content

refactor: only stringify AST JSON when JSON view is active#368

Open
Pixel998 wants to merge 1 commit intomainfrom
refactor/ast-lazy-json-stringify
Open

refactor: only stringify AST JSON when JSON view is active#368
Pixel998 wants to merge 1 commit intomainfrom
refactor/ast-lazy-json-stringify

Conversation

@Pixel998
Copy link
Copy Markdown
Contributor

Prerequisites checklist

AI acknowledgment

  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

What is the purpose of this pull request?

This PR reduces unnecessary work in the AST panel by avoiding JSON serialization when the AST tree view is active.

What changes did you make? (Give an overview)

Refactored src/components/ast/index.tsx so JSON.stringify(result.ast, null, 2) only runs when the JSON AST view is selected.

Related Issues

Is there anything you'd like reviewers to focus on?

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 30, 2026

Deploy Preview for eslint-code-explorer ready!

Name Link
🔨 Latest commit 72df215
🔍 Latest deploy log https://app.netlify.com/projects/eslint-code-explorer/deploys/69c9c448e1ace20008c75f75
😎 Deploy Preview https://deploy-preview-368--eslint-code-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

2 participants