Loading graphql/client/index.tsx +2 −8 Original line number Diff line number Diff line Loading @@ -18,9 +18,7 @@ export { useApolloNetworkStatus } * ApolloProviderWrapped * It's expected that URL Context is properly saturated */ const ApolloProviderWrapped: FC<PropsWithChildren> = ({ children, }) => { const ApolloProviderWrapped: FC<PropsWithChildren> = ({ children }) => { const { http, ws } = useURLContext() const httpLink = useMemo( Loading Loading @@ -65,11 +63,7 @@ const ApolloProviderWrapped: FC<PropsWithChildren> = ({ [http, ws] ) return ( <ApolloProvider client={client}> {children} </ApolloProvider> ) return <ApolloProvider client={client}>{children}</ApolloProvider> } export default ApolloProviderWrapped graphql/connection/index.tsx +29 −33 Original line number Diff line number Diff line /* eslint-disable consistent-default-export-name/default-export-match-filename */ import { Spinner } from "@blueprintjs/core" import { httpGraphql, wsGraphql } from "@inject/shared/config" import { useNotifyContext } from "@inject/shared/notification/contexts/NotifyContext" import { URLContextProps, URLProvider } from "@inject/shared/url" import { useSessionStorageState } from "ahooks" import { FC, ReactNode, useEffect, useMemo, useState } from "react" import { Spinner } from '@blueprintjs/core' import { httpGraphql, wsGraphql } from '@inject/shared/config' import { useNotifyContext } from '@inject/shared/notification/contexts/NotifyContext' import { URLContextProps, URLProvider } from '@inject/shared/url' import { useSessionStorageState } from 'ahooks' import { FC, ReactNode, useEffect, useMemo, useState } from 'react' const Loading = ({ err }: { err: null | string }) => ( <div Loading @@ -29,11 +29,7 @@ interface ConnectionProps { children: ReactNode } const Connection: FC<ConnectionProps> = ({ protocol, host_, children, }) => { const Connection: FC<ConnectionProps> = ({ protocol, host_, children }) => { const [host, setHost] = useSessionStorageState('host', { defaultValue: host_, deserializer: v => v, Loading frontend/src/main.tsx +1 −1 File changed.Contains only whitespace changes. Show changes Loading
graphql/client/index.tsx +2 −8 Original line number Diff line number Diff line Loading @@ -18,9 +18,7 @@ export { useApolloNetworkStatus } * ApolloProviderWrapped * It's expected that URL Context is properly saturated */ const ApolloProviderWrapped: FC<PropsWithChildren> = ({ children, }) => { const ApolloProviderWrapped: FC<PropsWithChildren> = ({ children }) => { const { http, ws } = useURLContext() const httpLink = useMemo( Loading Loading @@ -65,11 +63,7 @@ const ApolloProviderWrapped: FC<PropsWithChildren> = ({ [http, ws] ) return ( <ApolloProvider client={client}> {children} </ApolloProvider> ) return <ApolloProvider client={client}>{children}</ApolloProvider> } export default ApolloProviderWrapped
graphql/connection/index.tsx +29 −33 Original line number Diff line number Diff line /* eslint-disable consistent-default-export-name/default-export-match-filename */ import { Spinner } from "@blueprintjs/core" import { httpGraphql, wsGraphql } from "@inject/shared/config" import { useNotifyContext } from "@inject/shared/notification/contexts/NotifyContext" import { URLContextProps, URLProvider } from "@inject/shared/url" import { useSessionStorageState } from "ahooks" import { FC, ReactNode, useEffect, useMemo, useState } from "react" import { Spinner } from '@blueprintjs/core' import { httpGraphql, wsGraphql } from '@inject/shared/config' import { useNotifyContext } from '@inject/shared/notification/contexts/NotifyContext' import { URLContextProps, URLProvider } from '@inject/shared/url' import { useSessionStorageState } from 'ahooks' import { FC, ReactNode, useEffect, useMemo, useState } from 'react' const Loading = ({ err }: { err: null | string }) => ( <div Loading @@ -29,11 +29,7 @@ interface ConnectionProps { children: ReactNode } const Connection: FC<ConnectionProps> = ({ protocol, host_, children, }) => { const Connection: FC<ConnectionProps> = ({ protocol, host_, children }) => { const [host, setHost] = useSessionStorageState('host', { defaultValue: host_, deserializer: v => v, Loading