Skip to content

Commit

Permalink
chore: Add onError callback to example code
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmilton committed Jul 18, 2024
1 parent 997424f commit a5994dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ const App = (): JSX.Element => (
}}
// Scroll to top on route change
onRouted={() => window.scrollTo(0, 0)}
onError={(error) => console.error(error)}
/>
</Suspense>
</ErrorBoundary>
Expand Down

0 comments on commit a5994dc

Please sign in to comment.