You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes a user may want to make a change to data locally or in API, but the 'response' contains no data.
The issue is the following:
User instantiates a Repository<Void, C>.
It has to provide a QueryStrategy<Void, C>.
QueryStrategy#read would return Void.
It can't return null since Repository would interpret it as a cache miss. Void cannot be instantiated.
The user is forced to return something, Object for example. In consequence, it's forced to change the Call type parameter from Void to Object yielding a Call<Void>.
The text was updated successfully, but these errors were encountered:
Summary
Sometimes a user may want to make a change to data locally or in API, but the 'response' contains no data.
The issue is the following:
Repository<Void, C>
.QueryStrategy<Void, C>
.QueryStrategy#read
would returnVoid
.null
sinceRepository
would interpret it as a cache miss.Void
cannot be instantiated.Object
for example. In consequence, it's forced to change theCall
type parameter fromVoid
toObject
yielding aCall<Void>
.The text was updated successfully, but these errors were encountered: