-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
Update dependency react-scan to ^0.1.0 #5506
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
👍 @renovate[bot] Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5506 +/- ##
=========================================
Coverage 92.63% 92.63%
=========================================
Files 639 639
Lines 56065 56065
Branches 2892 4246 +1354
=========================================
Hits 51936 51936
Misses 4129 4129
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
❤️ Great PR @renovate[bot] ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
🎉 This PR is included in version 1.47.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR contains the following updates:
^0.0.54
->^0.1.0
Release Notes
aidenybai/react-scan (react-scan)
v0.1.0
: React Scan v0.1.0Compare Source
React Scan 0.1.0
React scan 0.1.0 has arrived, with it comes new features, performance improvements, and stability improvements:
Removals:
Options:
To be added back in a future release
Offscreen canvas
On the previous version of react-scan, we would draw all outlines on the main thread when we detected component renders. When the main thread became blocked due to large tasks (for example, lots of components re-rendering), we would not be able to complete ongoing render outline animations, giving the appearance of the outlines "freezing".
We now perform all drawing and animations on a separate thread using the Offscreen Canvas worker API. This allows us to smoothly complete our animations even if the main thread is completely blocked.
Whats changed
Our new version of what's changed will allow you to track all changes happening inside a component when selected using the component selector tool on the toolbar.
After detecting the state/props/context changes, we will tell you exactly what part of the data changed, and if the previous and current states are structurally the same.
Copying props/state to clipboard
Hover over the value you want to copy in the component inspector and click the copy icon, the value will be copied to your clipboard
Enabling disabling persisting
We don't want react-scan to get in your way, so we will persist the toolbar enabled/disable state of the react-scan outlines to your local storage, and always give that precedence over your local react-scan configuration when using the toolbar
Improved react scan render detection
We've modified our render detection logic to run less code unrelated to tracking if a component instance re-rendered, and instead deferring the unrelated computation to when the browser is under less load. This, along with minor lower level optimizations, results in a ~2x speed up in the code react scan runs every time your components re-render.
Configuration
📅 Schedule: Branch creation - "on sunday before 6:00am" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.