whenever i changed initial on the basis of my return success failure response then background color change but toggle not change its position. it appears right side always.
initial={isUpdated?1:0}
Toggle changed when we manually click on it if changed during run state changed it only change colors not toggle actually.