1
Fork 0

Remove debug console logs

This commit is contained in:
viktorstrate 2021-02-13 00:13:30 +01:00
parent 6613de5af9
commit 60f2635e21
No known key found for this signature in database
GPG Key ID: 3F855605109C1E8A
2 changed files with 0 additions and 4 deletions

View File

@ -122,7 +122,6 @@ const memoryCache = new InMemoryCache({
media: {
keyArgs: ['onlyFavorites'],
merge(existing = [], incoming) {
console.log('merge media', existing, incoming)
return [...existing, ...incoming]
},
},

View File

@ -19,17 +19,14 @@ const useScrollPagination = ({ loading, fetchMore, data, getItems }) => {
// configure new observer
observer.current = new IntersectionObserver(entities => {
console.log('Observing', entities)
if (entities.find(x => x.isIntersecting == false)) {
let itemCount = getItems(data).length
console.log('load more', itemCount)
fetchMore({
variables: {
offset: itemCount,
},
}).then(result => {
const newItemCount = getItems(result.data).length
console.log('then', result, itemCount, newItemCount)
if (newItemCount == 0) {
setFinished(true)
}