Update the view after a post is created
This commit is contained in:
parent
0aaa406b17
commit
236c908058
9 changed files with 79 additions and 9 deletions
|
@ -31,7 +31,10 @@ export const Home = observer(function Home({visible}: ScreenParams) {
|
|||
}, [visible, store])
|
||||
|
||||
const onComposePress = () => {
|
||||
store.shell.openModal(new ComposePostModel())
|
||||
store.shell.openModal(new ComposePostModel({onPost: onCreatePost}))
|
||||
}
|
||||
const onCreatePost = () => {
|
||||
feedView?.loadLatest()
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue