From 20aef24c84d43b78bf5a31d5e64154e5e8b07b36 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Tue, 10 Oct 2023 11:17:56 +0200 Subject: [PATCH] persisting_state_of_components.md: Remove getInstance() from code snippets It is a part of Services topic and is redundant noise on this page. Also, getInstance() helper is not required. --- topics/basics/persisting_state_of_components.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/topics/basics/persisting_state_of_components.md b/topics/basics/persisting_state_of_components.md index 2356c9696..2afbedede 100644 --- a/topics/basics/persisting_state_of_components.md +++ b/topics/basics/persisting_state_of_components.md @@ -34,10 +34,6 @@ In the former case, the state class instance is typically stored as a field in t @State(...) class MyService implements PersistentStateComponent { - public static MyService getInstance() { - // implementation according to Application/Project level service - } - static class State { public String value; } @@ -60,10 +56,6 @@ In the latter case, you can use the following pattern to implement `getState()` @State(...) class MyService implements PersistentStateComponent { - public static MyService getInstance() { - // implementation according to Application/Project level service - } - public String stateValue; public MyService getState() {