Skip to content

Commit

Permalink
🔥Remove GlobalState.persist property
Browse files Browse the repository at this point in the history
  • Loading branch information
yezyilomo authored Nov 22, 2022
1 parent 1fed08a commit e6c2310
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/GlobalState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ type Subscription = {
class GlobalState<T> {
value: T;
subscriptions: Array<Subscription>;
persist: boolean;

constructor(initialValue: T) {
this.value = initialValue;
this.subscriptions = [];
this.persist = false;
}

getValue<ST>(selector?: Selector<ST>): T | ST {
Expand Down

0 comments on commit e6c2310

Please sign in to comment.