Use fat arrow and this instead of self = this.
Remove unused variable scope.dispatchBatchNotSendable.
Handling page refresh while history is being processed.