More debugging

This commit is contained in:
Jackson Harper
2024-08-19 13:51:41 +08:00
parent ca7b515488
commit 45c7a57696

View File

@ -286,7 +286,9 @@ export function useGetLibraryItems(
const compareFunc = (a: string[], b: string[]) =>
a.length === b.length &&
a.every((element, index) => element === b[index])
setPreviousPageUnchanged(compareFunc(cachedIds, resultIds))
const unchanged = compareFunc(cachedIds, resultIds)
console.log('previous unchanged', unchanged, cachedIds, resultIds)
setPreviousPageUnchanged(unchanged)
} catch (err) {
console.log('error: ', err)
}