Closed edcogue closed 1 month ago
@edcogue
This is likely because someInfoList has a static variable assigned to it.
@observable
ObservableList<String> someInfoList = emptyList; // static emptyList
static ObservableList<String> emptyList = ObservableList.of([]);
=>
@observable
ObservableList<String> someInfoList = ObservableList.of([]);
Let me know if this doesn't work for you.
I want to use an Store implementation like this
To implement the remaining abstract method
fetch
this way in another controller to reuse the previous codeWhen I use the
ChildStore
andOtherChildStore
with differentfetch
methods, it seems that the data is store in a singleton, because no matter which is the implementation of fetch, all provide the same data. Is it possible to achieve this behavior?