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
There seems to be a problem with react-apollo-hooks in that the response is correct but when I print out the data object in useQuery its incorrect. Anyone any clues as to how to fix this?
The text was updated successfully, but these errors were encountered:
I found the issue. Its because they all had the same id so react-apollo-hooks must assume its the same object when they are not. I think this should be fixed as its not something that happens using other graphql tools.
Maybe the best way is to create a unique identifier (uuid) based on depth of you results, index, and id from your backend and then config your inMemoryCache. Like this you can keep your id field for some operation and keep the mechanism of auto caching of your apollo client.
There seems to be a problem with
react-apollo-hooks
in that the response is correct but when I print out thedata
object inuseQuery
its incorrect. Anyone any clues as to how to fix this?The text was updated successfully, but these errors were encountered: