Is there a way to just get the history\'s previous route without routing there?
const previousRoute = history.goBack();