From fb3f57d7cf85bf90ad77b55a572fb3ef8df0923e Mon Sep 17 00:00:00 2001 From: Konstantin Grigorchuk Date: Sat, 5 Oct 2024 23:47:59 +0300 Subject: [PATCH] Doc fix: observable fields is not created if it placed after makeAutoObservable --- docs/understanding-reactivity.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/understanding-reactivity.md b/docs/understanding-reactivity.md index 4bdb0ed03..034df860a 100644 --- a/docs/understanding-reactivity.md +++ b/docs/understanding-reactivity.md @@ -33,10 +33,10 @@ class Message { author likes constructor(title, author, likes) { - makeAutoObservable(this) this.title = title this.author = author this.likes = likes + makeAutoObservable(this) } updateTitle(title) {