diff --git a/topics/basics/persisting_state_of_components.md b/topics/basics/persisting_state_of_components.md index 8a96b0fde..711f255fb 100644 --- a/topics/basics/persisting_state_of_components.md +++ b/topics/basics/persisting_state_of_components.md @@ -67,6 +67,11 @@ In the latter case, you can use the following pattern to implement `getState()` ```java @State(...) class MyService implements PersistentStateComponent { + + public static MyService getInstance() { + // implementation according to Application/Project level service + } + public String stateValue; public MyService getState() {