In the onAudioPlayTrackChange callback, audioInfo is for the previous track - shouldn't it be for the new track?
The callback is invoked using this.state value before the state is updated in the loadAudio callback. I think it should match the new track as in onPlayIndexChange
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Version
react-jinke-music-player@4.24.1
Description
In the
onAudioPlayTrackChange
callback,audioInfo
is for the previous track - shouldn't it be for the new track?The callback is invoked using
this.state
value before the state is updated in theloadAudio
callback. I think it should match the new track as inonPlayIndexChange