Skip to content
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

feat(ui): add react-scan script for react component performance testing #1398

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

peps
Copy link
Collaborator

@peps peps commented Jan 17, 2025

This PR adds the react-scan debugging tool. It's really useful for React component refresh performance testing.

This script should always be commented out, and only enabled locally when specifically doing performance improvement work. I added an environment check to the script as an extra precaution in case it's ever accidentally bundled to production.

To activate it, just un-comment the script tag.

Here's a video of react-scan in action.

https://www.loom.com/share/3fc3d6485ab34a7cbee6f9bbf6383b93?sid=b83c9b67-bab9-437e-8d69-105eafb65a82

While mining....

https://www.loom.com/share/a389f6320f5e4613b72d15fd1ace78e0?sid=ab2c709f-09fd-4024-b53b-2b454a681523

@peps peps self-assigned this Jan 17, 2025
@peps peps changed the title feat(ui): add react-scan script for react component refresh testing feat(ui): add react-scan script for react component performance testing Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant