Commit 4d9197f
Fix: prevent infinite recursion in deepmerge by extracting children prop (#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]>1 parent aba61fa commit 4d9197f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
0 commit comments