Skip to content

Commit

Permalink
don't make init an observable
Browse files Browse the repository at this point in the history
  • Loading branch information
marcushellberg committed Mar 10, 2021
1 parent 1a421dc commit 5a7a16a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/stores/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as endpoint from "../generated/TodoEndpoint";
class Store {
todos: Todo[] = [];
constructor() {
makeAutoObservable(this);
makeAutoObservable(this, { init: false });
this.init();
}

Expand Down

0 comments on commit 5a7a16a

Please sign in to comment.