From 3bf89f6fa60a552c96236725ebebcc0028faad61 Mon Sep 17 00:00:00 2001 From: Andrii Gubanov Date: Thu, 1 Jun 2023 10:42:39 +0200 Subject: [PATCH] docs: Minor --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 3c7dcea..2266b59 100644 --- a/README.md +++ b/README.md @@ -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); } @@ -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.