We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a75cb16 commit 533cbccCopy full SHA for 533cbcc
source/app.js
@@ -70,14 +70,15 @@ export default class App extends React.Component {
70
const currentScreen = getCurrentRouteName(currentState)
71
const prevScreen = getCurrentRouteName(prevState)
72
73
+ if (!currentScreen) return
74
+
75
if (currentScreen !== prevScreen) {
76
tracker.trackScreenView(currentScreen)
77
+ bugsnag.leaveBreadcrumb(currentScreen, {
78
+ type: 'navigation',
79
+ previousScreen: prevScreen,
80
+ })
81
}
-
- bugsnag.leaveBreadcrumb(`Navigated from to ${currentScreen}.`, {
- type: 'navigation',
- previousScreen: prevScreen,
- })
82
83
84
render() {
0 commit comments