Disable vue-apollo network handler for now
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
e2721af456
commit
5f291336fd
@ -13,7 +13,6 @@ import buildCurrentUserResolver from "@/apollo/user";
|
|||||||
import { isServerError } from "@/types/apollo";
|
import { isServerError } from "@/types/apollo";
|
||||||
import { AUTH_ACCESS_TOKEN } from "@/constants";
|
import { AUTH_ACCESS_TOKEN } from "@/constants";
|
||||||
import { logout } from "@/utils/auth";
|
import { logout } from "@/utils/auth";
|
||||||
import { SnackbarProgrammatic as Snackbar } from "buefy";
|
|
||||||
import { Socket as PhoenixSocket } from "phoenix";
|
import { Socket as PhoenixSocket } from "phoenix";
|
||||||
import * as AbsintheSocket from "@absinthe/socket";
|
import * as AbsintheSocket from "@absinthe/socket";
|
||||||
import { createAbsintheSocketLink } from "@absinthe/socket-apollo-link";
|
import { createAbsintheSocketLink } from "@absinthe/socket-apollo-link";
|
||||||
@ -123,12 +122,7 @@ const errorLink = onError(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (networkError) {
|
if (networkError) {
|
||||||
console.log(`[Network error]: ${networkError}`);
|
console.error(`[Network error]: ${networkError}`);
|
||||||
Snackbar.open({
|
|
||||||
message: "Please refresh the page and retry.",
|
|
||||||
type: "is-danger",
|
|
||||||
position: "is-bottom",
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user