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
fix: requestAnimationFrame args #458
fix: requestAnimationFrame args #458
Conversation
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.
Looks fine, but lacking a test to verify its functionality
Codecov ReportBase: 95.52% // Head: 95.53% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #458 +/- ##
=======================================
Coverage 95.52% 95.53%
=======================================
Files 2 2
Lines 648 649 +1
=======================================
+ Hits 619 620 +1
Misses 29 29
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
|
For the record, I am preserving the existing behavior which passes |
Yes, I think that makes perfect sense! Separate commit and separate test case :) |
You got it @fatso83! New commit and updated tests. Hope you like it |
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.
I'll await what you think about my comments. Otherwise great stuff
@fatso83 Let me know if the latest changes address all of your concerns. I think this is good to go! |
Lockfile was changed from v2 to v1, probably not on purpose |
@SimenB Oh no! I'm not even sure how that could have accidentally happened. I would have understood if it upgraded to v3 somehow, but downgraded? No clue! I blame GitHub Codespaces' auto-setup haha. How would you like me to fix it? I definitely didn't intend to change anything in that file, I'm so sorry it got committed. |
I wouldn't worry about it, it doesn't really matter. Just a bit of extra diff |
I tried to reproduce it with a fresh GitHub Codespace and instantly upon setup it converted it back to v2 so I have no clue what I did. I guess whoever does the next PR will likely (either intentionally or accidentally) upgrade it to v2 again! haha |
Purpose (TL;DR)
Fix issue #454 by computing requestAnimationFrame args at the time when the callback is fired.