hotfix: graphql connection error handler (#4523)

Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
Anwarul Islam
2024-11-12 21:45:48 +06:00
committed by GitHub
parent 3de3209d5e
commit e1fbe68796
4 changed files with 55 additions and 15 deletions

View File

@@ -224,7 +224,10 @@ watch(
watch(
() => connection,
(newVal) => {
if (newVal.error && newVal.state === "DISCONNECTED") {
if (
newVal.error &&
(newVal.state === "DISCONNECTED" || newVal.state === "ERROR")
) {
const response = [
{
type: "error",