-
Notifications
You must be signed in to change notification settings - Fork 33
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: remove useEffect that fires before search params #465
fix: remove useEffect that fires before search params #465
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #465 +/- ##
==========================================
- Coverage 89.09% 88.36% -0.74%
==========================================
Files 234 247 +13
Lines 4310 4563 +253
Branches 889 956 +67
==========================================
+ Hits 3840 4032 +192
- Misses 449 503 +54
- Partials 21 28 +7 ☔ View full report in Codecov by Sentry. |
Was this error a regression in functionality? if so, do we want to add a test for 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.
Small nit on eslint comments. Change looks good to me!
React.useEffect(() => { | ||
dispatch(thunkActions.video.loadVideoData(selectedVideoId, selectedVideoUrl)); | ||
}, []); | ||
dispatch(thunkActions.video.loadVideoData(selectedVideoId, selectedVideoUrl)); |
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.
Nit:
The rules-of-hooks
disable in L15 can be removed.
If returnToGallery is renamed to useReturnToGallery, the other rules-of-hooks
disables can be removed as well.
This was not an regression in functionality. There bug has been around for a while and was not consistently reproducible. I do not think any additional tests are needed. |
* fix: remove useEffect that fires before search params * fix: remove disable lint lines
JIRA Ticket: TNL-11505
Testing