benwiley4000 / cassette

📼 A flexible media player component library for React that requires no up-front config
https://benwiley4000.github.io/cassette/styleguide
MIT License
185 stars 28 forks source link

Hooks #361

Closed benwiley4000 closed 5 years ago

benwiley4000 commented 5 years ago

We're using unstable_observedBits for usePlayerContext by reaching into some secret react internals which might change in a future release (as suggested here: https://github.com/facebook/react/issues/14815#issuecomment-462194923). I've future-proofed that a bit so if it does change, no one's code will break, and they'll receive a warning in the console letting them know what they can do to improve performance.