refactor: make features state consistent with codebase (#988)

This commit is contained in:
Aman Harwara
2022-04-20 20:11:32 +05:30
committed by GitHub
parent 7dae489617
commit 24d3aac3c7
7 changed files with 59 additions and 77 deletions

View File

@@ -102,7 +102,7 @@ export class AppState {
this.appEventObserverRemovers,
)
this.noteTags = new NoteTagsState(application, this, this.appEventObserverRemovers)
this.features = new FeaturesState(application)
this.features = new FeaturesState(application, this.appEventObserverRemovers)
this.tags = new TagsState(application, this.appEventObserverRemovers, this.features)
this.noAccountWarning = new NoAccountWarningState(application, this.appEventObserverRemovers)
this.accountMenu = new AccountMenuState(application, this.appEventObserverRemovers)
@@ -155,8 +155,6 @@ export class AppState {
this.appEventObserverRemovers.forEach((remover) => remover())
this.appEventObserverRemovers.length = 0
this.features.deinit()
;(this.features as unknown) = undefined
this.webAppEventDisposer?.()