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() {