Refactor TransactionService
-
Ensure we "unsubscribe" from everything "subscribed". -
Use lambda function broadcast
, that points to appropriate methods, instead of booleanobserve
parameter inTransactionService.upVote
and in other similar methods. -
Use object options = { onError, broadcast }
, instead of separate parameters, to have less work, when we'll need another changes in options.
Edited by Wojciech Barcik