trim state data and disable infinite scroll by default