@wener/console
Version:
Base console UI toolkit
12 lines (11 loc) • 431 B
JavaScript
import { getGlobalStates } from "@wener/utils";
import { getAccessToken } from "../../console/context.js";
import { createUrqlClient } from "../../urql/index.js";
import { getGraphQLUrl } from "./getGraphQLUrl.js";
export function getUrqlClient() {
return getGlobalStates("UrqlClient", () => createUrqlClient({
getToken: getAccessToken,
url: getGraphQLUrl()
}));
}
//# sourceMappingURL=getUrqlClient.js.map