Move posts feed to root store (me) and ensure new posts always update the feed

This commit is contained in:
Paul Frazee
2022-12-13 15:52:18 -06:00
parent 316679ae68
commit 7b7fe7ccd8
3 changed files with 27 additions and 31 deletions
+1
View File
@@ -121,6 +121,7 @@ export const ComposePost = observer(function ComposePost({
setIsProcessing(false)
return
}
store.me.mainFeed.loadLatest()
onPost?.()
onClose()
Toast.show(`Your ${replyTo ? 'reply' : 'post'} has been published`)