You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Shaun,
I struggle with iterarting to the posts array in the composable useTags.js. It throws an unhandled execption:
[Vue warn]: Unhandled error during execution of setup function
at <TagCloud key=1 posts= (5) [{…}, {…}, {…}, {…}, {…}] >
at <Index onVnodeUnmounted=fn ref=Ref< Proxy {…} > >
at <BaseTransition mode="out-in" appear=false persisted=false ... >
at
at
at
at
at
at <BaseTransition mode="out-in" appear=false persisted=false ... >
at
at
at
at
I am using Nuxt3. Code sample:
const useTags = (posts) => {
Hi Shaun,
I struggle with iterarting to the posts array in the composable useTags.js. It throws an unhandled execption:
[Vue warn]: Unhandled error during execution of setup function
at <TagCloud key=1 posts= (5) [{…}, {…}, {…}, {…}, {…}] >
at <Index onVnodeUnmounted=fn ref=Ref< Proxy {…} > >
at <BaseTransition mode="out-in" appear=false persisted=false ... >
at
at
at
at
at
at <BaseTransition mode="out-in" appear=false persisted=false ... >
at
at
at
at
I am using Nuxt3. Code sample:
const useTags = (posts) => {
const tags = ref([])
const tagSet = new Set()
posts.forEach(item => {
item.tags.forEach(tag => tagSet.add(tag))
})
tags.value = [...tagSet]
return { tags }
}
export default useTags
Hope it is ok to get in touch with you by opening an issue.
The text was updated successfully, but these errors were encountered: