-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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(hydration error): Create a tree-view that highlights dom mutations directly #80808
base: master
Are you sure you want to change the base?
Conversation
ryan953
commented
Nov 15, 2024
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #80808 +/- ##
==========================================
+ Coverage 74.97% 78.39% +3.41%
==========================================
Files 7207 7208 +1
Lines 319509 319549 +40
Branches 44001 44003 +2
==========================================
+ Hits 239546 250498 +10952
+ Misses 73442 62671 -10771
+ Partials 6521 6380 -141 |
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.
How many times does replayStepper run when we open this modal?
}); | ||
|
||
const timeIndexedMutations = Array.from(data?.values() ?? []).reduce( | ||
(mutation, acc) => { |
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.
Is this not switched? accumulator should be first arg
queryFn: () => | ||
extractDiffMutations({replay, rangeStartTimestampMs, rangeEndTimestampMs}), | ||
enabled: true, | ||
gcTime: 0, // Infinity, |
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.
oops, had this set to 0
for testing because i didn't want the cache to kick in so often.
Bundle ReportChanges will increase total bundle size by 44.89kB (0.14%) ⬆️. This is within the configured threshold ✅ Detailed changes
|
I was thinking about adding a feature-flag around this.. but it's pretty deep inside the workflow, so i think I might not 'need' it even if it's a good habit in all cases. Exception to the rule! |