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
|
@ -34,11 +34,19 @@ export class SharePostModel {
|
|||
}
|
||||
}
|
||||
|
||||
export interface ComposePostModelOpts {
|
||||
replyTo?: string
|
||||
onPost?: () => void
|
||||
}
|
||||
export class ComposePostModel {
|
||||
name = 'compose-post'
|
||||
replyTo?: string
|
||||
onPost?: () => void
|
||||
|
||||
constructor(public replyTo?: string) {
|
||||
constructor(opts?: ComposePostModelOpts) {
|
||||
makeAutoObservable(this)
|
||||
this.replyTo = opts?.replyTo
|
||||
this.onPost = opts?.onPost
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue