React History Ouça Obtenha Localização Anterior

let prevLocation;

history.listen(nextLocation => {
  console.log(prevLocation);
  // ...
  prevLocation = nextLocation;
});
Long Lyrebird