Update useConnection.ts
This commit is contained in:
parent
b4ae1327b5
commit
dd47b574b3
1 changed files with 6 additions and 1 deletions
|
|
@ -225,7 +225,12 @@ export function useConnection({
|
||||||
if (shouldRetry) {
|
if (shouldRetry) {
|
||||||
return connect(undefined, retryCount + 1);
|
return connect(undefined, retryCount + 1);
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
|
if (error instanceof SseError && error.code === 401) {
|
||||||
|
// Don't set error state if we're about to redirect for auth
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
||||||
const capabilities = client.getServerCapabilities();
|
const capabilities = client.getServerCapabilities();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue