Passing task when firing afterDispatch.