Skip to content

Commit 156de72

Browse files
committed
🐛 Fix bookshelf tabs loading indefinitely (#1018)
1 parent 8cc226f commit 156de72

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pages/shelf/[[walletAddress]].vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,13 @@ onMounted(async () => {
678678
}
679679
})
680680
681+
// PostHog loads lazily via @nuxt/scripts, so the flag may resolve after onMounted
682+
watch(isUploadedBookFeatureEnabled, (isEnabled) => {
683+
if (isEnabled && isMyBookshelf.value && !uploadedBooksStore.hasFetched) {
684+
uploadedBooksStore.fetchItems()
685+
}
686+
})
687+
681688
onUnmounted(() => {
682689
if (paramWalletAddress.value) {
683690
bookshelfStore.reset()

0 commit comments

Comments
 (0)