Calling callback after changing the array state makes more sense.