fix: unreactive post comments
This commit is contained in:
1 parent
dd07caf5c4
commit
9dc575668c
3 files changed
+24
-21
No files matched your search
@@ -44,10 +44,7 @@
|
||||
let comments = $state(passedComments)
|
||||
|
||||
let commenting = $state(false)
|
||||
let tree = $state(buildCommentsTree(comments.comments))
|
||||
$effect(() => {
|
||||
tree = buildCommentsTree(comments.comments)
|
||||
})
|
||||
let tree = $derived(buildCommentsTree(comments.comments))
|
||||
</script>
|
||||
|
||||
{#if $profile?.jwt}
|
||||
|
||||
Reference in new issue
Block a user