Add Winax dependency back. Multiple bug fixes for estimate decoding.
This commit is contained in:
@@ -46,7 +46,7 @@ const App: React.FC = () => {
|
||||
<HashRouter>
|
||||
<ErrorBoundary FallbackComponent={ErrorBoundaryFallback}>
|
||||
<NotificationProvider>
|
||||
<Skeleton loading={user === null} active>
|
||||
<Skeleton loading={user === false} active>
|
||||
<Layout style={{ minHeight: "100vh" }}>
|
||||
{!user ? (
|
||||
<SignInForm />
|
||||
|
||||
29
src/renderer/src/util/graphql.client.ts
Normal file
29
src/renderer/src/util/graphql.client.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import {
|
||||
ApolloClient,
|
||||
ApolloLink,
|
||||
HttpLink,
|
||||
InMemoryCache,
|
||||
} from "@apollo/client";
|
||||
|
||||
const httpLink: HttpLink = new HttpLink({
|
||||
uri: import.meta.env.VITE_GRAPHQL_URL,
|
||||
});
|
||||
|
||||
const middlewares = [];
|
||||
const client: ApolloClient<any> = new ApolloClient({
|
||||
link: ApolloLink.from(middlewares),
|
||||
cache: new InMemoryCache(),
|
||||
defaultOptions: {
|
||||
watchQuery: {
|
||||
fetchPolicy: "network-only",
|
||||
},
|
||||
query: {
|
||||
fetchPolicy: "network-only",
|
||||
},
|
||||
mutate: {
|
||||
errorPolicy: "none",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export default client;
|
||||
Reference in New Issue
Block a user