let onRefreshed accepts 2 arguments; updated deps