Skip to content

Conversation

@domlander
Copy link
Contributor

@domlander domlander commented Dec 18, 2025

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

  1. https://react.dev/learn/you-might-not-need-an-effect

@github-actions
Copy link

github-actions bot commented Dec 18, 2025

@domlander domlander force-pushed the doml/reduce-video-useeffects branch 4 times, most recently from 1f5fb23 to eeacda2 Compare December 22, 2025 12:26
@domlander domlander changed the title Reduce self-hosted video useEffects Reduce the number of useEffects in self-hosted video Jan 8, 2026
@domlander domlander force-pushed the doml/reduce-video-useeffects branch from eeacda2 to 4d09685 Compare January 8, 2026 16:22
@github-actions
Copy link

github-actions bot commented Jan 8, 2026

@domlander domlander force-pushed the doml/reduce-video-useeffects branch from 4d09685 to 0f39f17 Compare January 22, 2026 11:36
@domlander domlander self-assigned this Jan 22, 2026
@domlander domlander added run_chromatic Runs chromatic when label is applied fronts + curation maintenance Departmental tracking: maintenance work, not a fix or a feature labels Jan 22, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jan 22, 2026
@domlander domlander force-pushed the doml/reduce-video-useeffects branch from 81a30bd to 0f39f17 Compare January 22, 2026 12:29
@domlander domlander marked this pull request as ready for review January 22, 2026 12:30
@github-actions
Copy link

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@domlander domlander added the run_chromatic Runs chromatic when label is applied label Jan 22, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jan 22, 2026
@domlander domlander added the run_chromatic Runs chromatic when label is applied label Jan 22, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jan 22, 2026
@domlander domlander force-pushed the doml/reduce-video-useeffects branch from 56905d1 to 3fc87e8 Compare January 22, 2026 15:17
@domlander domlander added the run_chromatic Runs chromatic when label is applied label Jan 22, 2026
@domlander domlander force-pushed the doml/reduce-video-useeffects branch from 3fc87e8 to 570712b Compare January 22, 2026 15:17
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jan 22, 2026
Copy link
Contributor

@abeddow91 abeddow91 left a 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 👏

@domlander domlander merged commit d5f7ffe into main Jan 22, 2026
30 checks passed
@domlander domlander deleted the doml/reduce-video-useeffects branch January 22, 2026 17:18
@gu-prout
Copy link

gu-prout bot commented Jan 22, 2026

Seen on PROD (merged by @domlander 7 minutes and 58 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fronts + curation maintenance Departmental tracking: maintenance work, not a fix or a feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants