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 ebfa6e5581
commit 345ec83f26
3 changed files with 27 additions and 31 deletions

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`)