1
Fork 0

Changed fetch policy to force refresh.

This commit is contained in:
Peter - Ubuntu dual boot 2021-09-23 13:56:02 +01:00
parent 9f81276448
commit 5610fe0c00
2 changed files with 4 additions and 1 deletions

View File

@ -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 } =

View File

@ -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">