ReferenceStore
createSelector
Create a type-safe selector for a store slice's state
Import
createSelector is also re-exported from @videojs/react and @videojs/html.
createSelector creates a type-safe selector function for a given slice. The returned selector extracts that slice’s state from the full store state, or returns undefined if the slice is not configured.
The built-in selectors (selectPlayback, selectBuffer, etc.) are all created with createSelector. Use it to create selectors for custom slices.