mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
fix(web): unauthorized errors (#320)
- fix(ErrorPage): add padding to the page for mobile devices - chore(react-query): wrap APIClient calls in anonymous functions to avoid passing react-query context variables by accident - fix incorrect ordering of ErrorBoundary and QueryClientProvider (ErrorBoundary is now the parent)
This commit is contained in:
parent
aa500fd13d
commit
c4efbd6e20
11 changed files with 28 additions and 26 deletions
|
@ -32,17 +32,17 @@ export function App() {
|
|||
const settings = SettingsContext.useValue();
|
||||
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<Toaster position="top-right" />
|
||||
<ErrorBoundary
|
||||
onReset={reset}
|
||||
fallbackRender={ErrorPage}
|
||||
>
|
||||
<ErrorBoundary
|
||||
onReset={reset}
|
||||
fallbackRender={ErrorPage}
|
||||
>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<Toaster position="top-right" />
|
||||
<LocalRouter isLoggedIn={authContext.isLoggedIn} />
|
||||
{settings.debug ? (
|
||||
<ReactQueryDevtools initialIsOpen={false} />
|
||||
) : null}
|
||||
</ErrorBoundary>
|
||||
</QueryClientProvider>
|
||||
</QueryClientProvider>
|
||||
</ErrorBoundary>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue