Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hooks): useProgress & usePlayback hooks (#1723)
* fix(js): fix useProgress & usePlayback hooks - (breaking) fix: usePlaybackState was incorrectly returning State.None by default. Now it returns undefined while it is waiting on the async call to TrackPlayer to resolve. This also fixes the following issue where duration was incorrectly being reported as `0`: #1709 - optimization: avoid unnecessarily reevaluating the useEffect on every player state change by moving the `playerState === State.None` outside of the effect and including it as a dependency instead * chore(js): make hooks fix non-breaking
- Loading branch information