Open jonenst opened 4 months ago
when we are not preloading, we should call the delegate only once (e.g. getSubstations() and not ALL_COLLECTION_FOR_BUS_VIEW or getSwitches) when we are preloading (first time calling (checked with cachedResourcesTypes) either getSubstation() or getSubstations and ALL_COLLECTION_FOR_BUS_VIEW), call the method with more data, and then call the right method.
Describe the current behavior
wee call getSubstations twice, so it works only for CachedNetworkStoreClient
Describe the expected behavior
refactor the code to force the delegate to be of type cachednetworkstoreclient for preloadingnetworkstoreclient ? because it doesn't make sense to preload for a client that doesn't not cache.
Describe the motivation
reduce code complexity
Extra Information
No response