Changed fetch policy to force refresh.
This commit is contained in:
parent
9f81276448
commit
5610fe0c00
|
@ -93,6 +93,7 @@ function AlbumPage({ match }: AlbumPageProps) {
|
||||||
offset: 0,
|
offset: 0,
|
||||||
limit: 200,
|
limit: 200,
|
||||||
},
|
},
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
})
|
})
|
||||||
|
|
||||||
const { containerElem, finished: finishedLoadingMore } =
|
const { containerElem, finished: finishedLoadingMore } =
|
||||||
|
|
|
@ -19,7 +19,9 @@ const getAlbumsQuery = gql`
|
||||||
`
|
`
|
||||||
|
|
||||||
const AlbumsPage = () => {
|
const AlbumsPage = () => {
|
||||||
const { error, data } = useQuery<getMyAlbums>(getAlbumsQuery)
|
const { error, data } = useQuery<getMyAlbums>(getAlbumsQuery, {
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout title="Albums">
|
<Layout title="Albums">
|
||||||
|
|
Loading…
Reference in New Issue