Skip to content

Commit

Permalink
Update thread info when available
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Sep 14, 2023
1 parent 571aed9 commit 9b1486b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CreatorKit/wwwroot/mjs/components/post.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,12 @@ export const PostVotesEmbed = {

watch(() => user.value, refresh)

onMounted(() => {
store.events.subscribe('thread', () => {
instance?.proxy?.$forceUpdate()
})
})

return { store, toggleLike }
}
}
Expand Down

0 comments on commit 9b1486b

Please sign in to comment.