Add new useFullscreenContext and usePlayerContext exports from the @cassette/hooks package
usePlayerContext needs a list of accepted context members
Warn if a new filterList prop isn't provided to PlayerContextConsumer
Update some docs
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.
useFullscreenContext
andusePlayerContext
exports from the@cassette/hooks
packageusePlayerContext
needs a list of accepted context membersfilterList
prop isn't provided toPlayerContextConsumer
We're using
unstable_observedBits
forusePlayerContext
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.