Skip to content

Commit

Permalink
docs: Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
finom committed Jun 1, 2023
1 parent 7b1afbc commit 3bf89f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,6 @@ export class RootStore extends Use0 {
readonly companies = companies;
constructor() {
super();
// you can write a function that automates that:
// this.initStore(users, companies, ...rest);
users.init(this);
companies.init(this);
}
Expand Down Expand Up @@ -768,7 +766,7 @@ class UserMethodsPartTwo extends UserMethodsPartOne {
readonly anotherLargeMethod = () => { /* ... */ }
}

class Users extends UserMethodsPartTwo { /* ... */ }
class UsersProtected extends UserMethodsPartTwo { /* ... */ }
```

But it's too hard to manage the enheritance chain. Instead, move methods as individual functions to another file.
Expand Down

0 comments on commit 3bf89f6

Please sign in to comment.