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 continuously saving to an api while dragging the slider, some requests can take a while before seeing visible changes. I wonder if we can implement a ghost knob or something similiar that is displaying the actual value/position.
Workflow could be something like
-> Save value
-> Get data from a subscription
-> The standard knob is displaying the value we saved
-> The ghost knob is displaying the subscription data
-> The ghost knob disappears when reaching the standard knob position
The text was updated successfully, but these errors were encountered:
Save the value to a state and debounce api saving?
constMyComponent=({ initalValueFromApi })=>{const[value,setValue]=useState(initalValueFromApi)constchangeCb=useCallback((val)=>{setValue(val)consttimeout=setTimeout(()=>{// save to api},500)},[])return<Slidervalue={value}onChange={changeCb}/>}
Sorry, I meant more like this. It can be some mechanics that needs time to reach the value that we saved. That would mean creating that ghost knob. But the user gets feedback that something is happening.
When continuously saving to an api while dragging the slider, some requests can take a while before seeing visible changes. I wonder if we can implement a ghost knob or something similiar that is displaying the actual value/position.
Workflow could be something like
-> Save value
-> Get data from a subscription
-> The standard knob is displaying the value we saved
-> The ghost knob is displaying the subscription data
-> The ghost knob disappears when reaching the standard knob position
The text was updated successfully, but these errors were encountered: