Skip to content

Commit

Permalink
refactor(AppProviders.tsx): reformat useGraphqlClient function call f…
Browse files Browse the repository at this point in the history
…or better readability

The useGraphqlClient function call has been reformatted to improve readability by placing each argument on a new line. This makes the code easier to understand and maintain.
  • Loading branch information
ktun95 committed Nov 22, 2024
1 parent 77c5f48 commit 91c5d53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/genome-page/components/layout/AppProviders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ const cacheOptions = {

const AppProviders = ({ children }: { children: React.ReactNode }) => {
const { cache, isInitializing } = useApolloClientCache(cacheOptions)
const client = useGraphqlClient({ uri: `${process.env.NEXT_PUBLIC_GRAPHQL_SERVER}/graphql`, cache })
const client = useGraphqlClient({
uri: `${process.env.NEXT_PUBLIC_GRAPHQL_SERVER}/graphql`,
cache,
})

if (isInitializing) {
return <CircularProgress />
Expand Down

0 comments on commit 91c5d53

Please sign in to comment.