Skip to content

Conversation

@xkelxmc
Copy link
Contributor

@xkelxmc xkelxmc commented May 18, 2025

  • Updated ReactPlayer to destructure and exclude children from props before merging with defaultProps.
  • This prevents deepmerge from causing infinite recursion when children are present.
  • Children are now explicitly passed to the underlying player component, enabling custom content without recursion issues.

- Updated ReactPlayer to destructure and exclude children from props before merging with defaultProps.
- This prevents deepmerge from causing infinite recursion when children are present.
- Children are now explicitly passed to the underlying player component, enabling custom content without recursion issues.
Copy link
Collaborator

@luwes luwes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@luwes luwes had a problem deploying to github-preview May 19, 2025 17:15 — with GitHub Actions Failure
@luwes luwes merged commit 4d9197f into cookpete:master May 19, 2025
5 of 6 checks passed
luwes added a commit that referenced this pull request May 19, 2025
…rop (#1933)

* Fix: prevent infinite recursion in deepmerge by extracting children prop

- Updated ReactPlayer to destructure and exclude children from props before merging with defaultProps.
- This prevents deepmerge from causing infinite recursion when children are present.
- Children are now explicitly passed to the underlying player component, enabling custom content without recursion issues.

* Update src/ReactPlayer.tsx

---------

Co-authored-by: Wesley Luyten <[email protected]>
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