refactor: allow providing submit action to editor component to allow posting replys and not redirecting on post. fix: also clear the editor after posting

This commit is contained in:
Stevan Freeborn
2023-09-13 01:19:30 -05:00
parent 272a74cf5d
commit aa85477fbe
5 changed files with 196 additions and 65 deletions
+1
View File
@@ -46,6 +46,7 @@ export const getUsersPostById = query({
return await ctx.db
.query('posts')
.withIndex('by_user_id', q => q.eq('userId', args.userId))
.filter(q => q.eq(q.field('parentPostId'), undefined))
.order('desc')
.paginate(args.paginationOpts);
},