fix: comments not appearing immediately
This commit is contained in:
6 files changed
+157
-252
No files matched your search
@@ -116,7 +116,12 @@
|
||||
<CommentForm
|
||||
postId={post.post.id}
|
||||
oncomment={(comment) => {
|
||||
comments.unshift(comment.comment_view)
|
||||
tree.unshift({
|
||||
children: [],
|
||||
depth: 1,
|
||||
expanded: true,
|
||||
comment_view: comment.comment_view,
|
||||
})
|
||||
}}
|
||||
onfocus={() => (commenting = true)}
|
||||
tools={commenting}
|
||||
|
||||
Reference in new issue
Block a user