Skip to content
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: use initial player ref to avoid redundant callbacks #14

Merged
merged 3 commits into from
Jun 21, 2024

Conversation

karpov-kir
Copy link
Contributor

@karpov-kir karpov-kir commented Jun 21, 2024

Related to: https://bitmovin.atlassian.net/browse/FE-189.

The fix avoids unnecessary callbacks when using inline ref functions. Without the fix, the following would invoke the callback unnecessary on re-renders:

image

@karpov-kir karpov-kir force-pushed the feature/FE-189-use-initial-player-ref branch from 2f3a28e to 796c172 Compare June 21, 2024 12:55
@karpov-kir karpov-kir force-pushed the feature/FE-189-use-initial-player-ref branch from 796c172 to d67f524 Compare June 21, 2024 12:56
@karpov-kir karpov-kir requested a review from felix-hoc June 21, 2024 12:56
@karpov-kir karpov-kir changed the title Update CHANGELOG.md fix: use initial player ref to avoid redundant callbacks Jun 21, 2024
@karpov-kir karpov-kir force-pushed the feature/FE-189-use-initial-player-ref branch from 53a2d50 to 714089e Compare June 21, 2024 13:02
@karpov-kir karpov-kir merged commit f746ee8 into main Jun 21, 2024
4 checks passed
@karpov-kir karpov-kir deleted the feature/FE-189-use-initial-player-ref branch June 21, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants