Skip to content

Commit

Permalink
[chore]cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Inalegwu committed Jun 8, 2024
1 parent 59956e6 commit dd082d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/shared/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,10 @@ import type { AppRouter } from "./routers/_app";

const t = createTRPCReact<AppRouter>();

// configure the tanstack/query client
export const queryClient = new QueryClient({
defaultOptions: {
queries: {
// allows queries and mutations to run without a network connection
// don't change this at a global level
// any procedure that will need network access can be configured locally
networkMode: "always",
// keeps the cache permanently , if your app is going to be a mostly
// online application you can remove this config option , but for offline first apps ,
// this gives you the benefit of a cache , as well as the performance boost of not having to
// request the same data all the time
cacheTime: Number.POSITIVE_INFINITY,
},
mutations: {
Expand All @@ -27,7 +19,6 @@ export const queryClient = new QueryClient({
});

export const trpcClient = t.createClient({
// expose the custom ipcLink provided by electron-trpc
links: [ipcLink()],
});

Expand Down
4 changes: 2 additions & 2 deletions src/web/components/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function About() {
<Info />
</Button>
</Dialog.Trigger>
<Dialog.Content size="1">
<Dialog.Content size="2">
<Flex direction="column" align="start" gap="2">
<Flex align="center" className="w-full" justify="end">
<Dialog.Close>
Expand Down Expand Up @@ -46,7 +46,7 @@ export default function About() {
<Flex align="start" direction="column">
<Text size="3" color="gray">
For more information, visit us{" "}
<Text size="2" color="iris" className="cursor-pointer">
<Text size="3" color="iris" className="cursor-pointer">
@apollo.share
</Text>
</Text>
Expand Down

0 comments on commit dd082d1

Please sign in to comment.