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
When the all section of search component is rendered for the first time . The play button doesn't work for the first time for the top song that appears below Top Results section.
This button does not work for the first song this happens, after changing to another song then using this button to play top song work.
Cause: We are currently using setCurrSong to switch between the songs in the music player. However, when this page is loaded for the first time the MusicPlayer load with the top song. So, in the onClick handler of this button we are using setCurrSong with same song again, which leads to no update in the currSong's state, preventing re-render.
Congratulations, @The-Phoenics! 🎉 Thank you for creating your issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work! As per GSSoC'24 guidelines the person who raises the issue should be assigned for that issue. But if that person doesn't want to work on that issue the first come fist policy is follwed.
We'd also like to invite you to our Discord server! Join us on discord.
We will promptly review your changes and offer feedback. Keep up the excellent work! Kindly remember to check our contributing guidelines
Is there an existing issue for this?
What happened?
When the all section of search component is rendered for the first time . The play button doesn't work for the first time for the top song that appears below Top Results section.
This button does not work for the first song this happens, after changing to another song then using this button to play top song work.
Cause: We are currently using
setCurrSong
to switch between the songs in the music player. However, when this page is loaded for the first time theMusicPlayer
load with the top song. So, in the onClick handler of this button we are usingsetCurrSong
with same song again, which leads to no update in thecurrSong
's state, preventing re-render.Spring-Music-Player/frontend/src/components/Search/Search.jsx
Lines 142 to 146 in f090341
Record
The text was updated successfully, but these errors were encountered: