João Silva
01/30/2024, 3:13 PMExperimentalStoreApi
package changed
• We had a couple of extensions on top of StoreReadResponse
so I needed to take into account the new types.
There was just one thing I'd like to understand around the Converter
now being exposed to the Store
.
I understand that fromOutputToLocal
is something that makes sense to the MutableStore
.
But, for the Store
i was expecting this interface to be something like:
fun fromNetworkToLocal(network: Network): Local
fun fromLocalToOutput(local: Local): Output
The most common Use case is to transform DTO > Entity
and Entity > Domain
Does it make sense to have separate Converters? One for Store and other for MutableStore?Matthew Ramotar
02/14/2024, 2:38 AMMatthew Ramotar
02/14/2024, 2:43 AMRealMutableStore
delegates to RealStore
(providing Converter
instance)Matthew Ramotar
02/14/2024, 2:44 AMSourceOfTruth
bindingsJoão Silva
02/14/2024, 1:16 PM