Update all state on profile change
This commit is contained in:
parent
96dc748733
commit
9170040acb
4 changed files with 14 additions and 4 deletions
|
@ -42,7 +42,10 @@ export class SharePostModel {
|
|||
export class EditProfileModel {
|
||||
name = 'edit-profile'
|
||||
|
||||
constructor(public profileView: ProfileViewModel) {
|
||||
constructor(
|
||||
public profileView: ProfileViewModel,
|
||||
public onUpdate?: () => void,
|
||||
) {
|
||||
makeAutoObservable(this)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue