Remove the cache busting

This commit is contained in:
Jackson Harper
2024-08-15 16:27:05 +08:00
parent 3ceb18400c
commit 49b66f3504
3 changed files with 19 additions and 34 deletions

View File

@ -86,6 +86,7 @@ export const updateItemProperty = (
.findAll({ queryKey: ['libraryItems'] })
keys.forEach((query) => {
console.log('updating query: ', query.queryKey)
queryClient.setQueryData(query.queryKey, (data: any) => {
if (!data) return data
const updatedData = {
@ -107,6 +108,7 @@ export const updateItemProperty = (
return updatedData
})
})
console.log('updated: foundItemSlug', foundItemSlug)
if (foundItemSlug || slug) {
queryClient.setQueryData(
['libraryItem', foundItemSlug ?? slug],