mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
fix(web): implement offline detection (#1065)
* xtreme connected edition * change fallbackRender to fallbackComponent on ErrorBoundary * call healthz endpoint when error is 500 * display custom offline message * fix eslint indentation for switchCase * Update ErrorPage.tsx * check against error.cause --------- Co-authored-by: Fabricio Silva <hi@fabricio.dev>
This commit is contained in:
parent
d187daa566
commit
a1a16adbab
4 changed files with 34 additions and 25 deletions
|
@ -22,7 +22,7 @@ const queryClient = new QueryClient({
|
|||
// delay = Math.min(1000 * 2 ** attemptIndex, 30000)
|
||||
retry: true,
|
||||
useErrorBoundary: true,
|
||||
suspense: true,
|
||||
suspense: true
|
||||
},
|
||||
mutations: {
|
||||
onError: (error) => {
|
||||
|
@ -47,7 +47,7 @@ export function App() {
|
|||
return (
|
||||
<ErrorBoundary
|
||||
onReset={reset}
|
||||
fallbackRender={ErrorPage}
|
||||
FallbackComponent={ErrorPage}
|
||||
>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<Portal>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue