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

Added Print Report function #29

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

davebcn87
Copy link

@davebcn87 davebcn87 commented Nov 22, 2024

Adds printReport, where you could pass a list of component names to get specific rendering data.

Example usage

Code:

useEffect(() => {
   printReport(['Button', 'AddTaskBar']);
}, [tasks, activeTab]);

Output:

print.report.mov

Next

I'd like to make this function available from console, so you could call it at any moment from the developer tools console and see actual stats.

Copy link

vercel bot commented Nov 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-scan ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 25, 2024 11:50am

@pivanov
Copy link
Collaborator

pivanov commented Dec 2, 2024

Hey @davebcn87 Nice one!!! When I looked the demo I just realized that it will be cool to add one more function to save a JSON result too ... it will be great for testing on comparison! Once again ... beautiful!

@RobPruzan RobPruzan force-pushed the main branch 2 times, most recently from 7526d13 to 47c46ca Compare December 21, 2024 01:52
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.

2 participants