Basically, we do double work when we do distinctUntilChanged as we after that create the RouteChange that does pretty much the same thing. So we do the same work twice. Instead, we could use the RouteChange and filter for it to be non-empty, as it takes O(1) time
Basically, we do double work when we do
distinctUntilChanged
as we after that create theRouteChange
that does pretty much the same thing. So we do the same work twice. Instead, we could use theRouteChange
and filter for it to be non-empty, as it takesO(1)
time