Skip to content

Commit

Permalink
feat: passing reset callback to error component #910
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceRodrigues committed Nov 19, 2023
1 parent 85324f2 commit 7fcddf0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions explorer/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,18 @@ function MyApp({ Component, pageProps }: AppProps): JSX.Element {
<FileManifestStateProvider>
<Main>
<ErrorBoundary
fallbackRender={(
error: DataExplorerError
): JSX.Element => (
fallbackRender={({
error,
reset,
}: {
error: DataExplorerError;
reset: () => void;
}): JSX.Element => (
<Error
errorMessage={error.message}
requestUrlMessage={error.requestUrlMessage}
rootPath={redirectRootToPath}
onReset={reset}
/>
)}
>
Expand Down

0 comments on commit 7fcddf0

Please sign in to comment.