I am working on developing a slider that can automatically update its displayed value at regular intervals. Similar to the playback timeline feature found on platforms like Spotify, Soundcloud, or YouTube. However, I still want the slider to be interactive for user input, which is why I have opted not to use a LinearProgress component.
But every time I try to update the value attribute, I encounter this error message:
Material-UI: A component is changing an uncontrolled Slider to be controlled.
Elements should not switch from uncontrolled to controlled (or vice versa).
Decide between using a controlled or uncontrolled Slider element for the lifetime of the component.
Is there a way to control the slider's value without relying solely on user input? Or do I need to utilize both a LinearProgress and a Slider separately?