Skip to content

Commit a5994dc

Browse files
committed
chore: Add onError callback to example code
1 parent 997424f commit a5994dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ const App = (): JSX.Element => (
161161
}}
162162
// Scroll to top on route change
163163
onRouted={() => window.scrollTo(0, 0)}
164+
onError={(error) => console.error(error)}
164165
/>
165166
</Suspense>
166167
</ErrorBoundary>

0 commit comments

Comments
 (0)