If you give a function to onRefresh with the wrong parameters, there is no error printed, and the callback do not work.