I am making a CRUD application.
I have an environment that has a repository object that has MOC. I wonder if I am correct in my assumption that when returning objects from CD store I should convert them to simple DTOs in the Effect and return them to the reducer as simple structs (as to hide the dependency from CD). And should I do the reverse when accepting user input from views by accepting DTO into the Effect that later then converts it to instance of NSManagedObject. Same question applies to the object updates and deletes by object ids.
So basically I wonder if it's an accepted practice of converting DTOs to implementation-dependent objects (CoreData, SQLite, serialized json, etc.) in the Effects OR can effects expose the implementation-dependent types to the reducer and the state?