You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] [iOS] currentConfig is not updated after a playlist-only setConfig apply #249
In ios/RNJWPlayer/RNJWPlayerView.swift, setConfig has a branch for the case where only the playlist key differs (lines 297–365). That branch applies the new playlist but never assigns currentConfig.
Every other apply path does assign it — lines 627, 715, 752 and 889.
After a playlist-only update the module's cached config therefore still describes the previous playlist, so the next setConfig diffs the incoming config against a configuration that was never the one applied.
To Reproduce
Set up a player with an array config.playlist.
Change only config.playlist (e.g. reorder the items).
Observe that currentConfig is unchanged, while the player has been sent the new playlist.
Expected behavior
currentConfig reflects whatever was last applied, consistently across all apply paths.
Additional context
We have not traced a user-visible symptom to this on its own, so filing it as a correctness issue rather than a defect report. It surfaced while investigating #248, and it makes reasoning about that branch harder because the module's own record of state is unreliable.
Activity