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
Since ApolloResponse changed to being a standard class (I think it used to be a data class?), the toString() now is not very useful because it prints the default hashcode / instance code based toString.
Can we introduce a custom toString for ApolloResponse? While printing all of data does not make sense, I'm trying to think what might be useful -- perhaps the cache key?
Describe the solution you'd like
No response
The text was updated successfully, but these errors were encountered:
Agreed. This is also recommended by the Kotlin API guidelines. While I wouldn't put toString() on each and every class, ApolloResponse is central enough that it deserves one.
PS: cache key won't be possible because caching belongs to another module (apollo-normalized-cache vs apollo-runtime)
Use case
Since
ApolloResponse
changed to being a standardclass
(I think it used to be adata class
?), thetoString()
now is not very useful because it prints the default hashcode / instance code basedtoString
.Can we introduce a custom
toString
forApolloResponse
? While printing all ofdata
does not make sense, I'm trying to think what might be useful -- perhaps the cache key?Describe the solution you'd like
No response
The text was updated successfully, but these errors were encountered: