-
Notifications
You must be signed in to change notification settings - Fork 30
Reduce the number of useEffects in self-hosted video
#15034
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
Conversation
1f5fb23 to
eeacda2
Compare
useEffects in self-hosted video
eeacda2 to
4d09685
Compare
4d09685 to
0f39f17
Compare
81a30bd to
0f39f17
Compare
|
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
56905d1 to
3fc87e8
Compare
3fc87e8 to
570712b
Compare
abeddow91
left a comment
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.
This is great Dom! Thanks for refactoring this 👏
|
Seen on PROD (merged by @domlander 7 minutes and 58 seconds ago) Please check your changes! |
What does this change?
Removes redundant
useEffect's.Why?
Removing unnecessary Effects will make your code easier to follow, faster to run, and less error-prone.1
Footnotes
https://react.dev/learn/you-might-not-need-an-effect ↩