My component renders every second instead of only rendering if the state passed into setCurrentlyPlaying() is different. How can I fix this behavior?