[FA-11] Fix react build issues
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { useMemo } from 'react'
|
||||
|
||||
import { useNovelsQuery } from '../__generated__/graphql'
|
||||
import { useQuery } from '@apollo/client/react'
|
||||
import { NovelsDocument } from '../__generated__/graphql'
|
||||
import { NovelCard } from '../components/NovelCard'
|
||||
import { Button } from '../components/ui/button'
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '../components/ui/card'
|
||||
@@ -8,7 +9,7 @@ import { Card, CardContent, CardHeader, CardTitle } from '../components/ui/card'
|
||||
const PAGE_SIZE = 12
|
||||
|
||||
export function NovelsPage() {
|
||||
const { data, loading, error, fetchMore } = useNovelsQuery({
|
||||
const { data, loading, error, fetchMore } = useQuery(NovelsDocument, {
|
||||
variables: { first: PAGE_SIZE, after: null },
|
||||
notifyOnNetworkStatusChange: true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user