Closed edenman closed 5 months ago
Hi 👋 . Indeed, I don't think we have such a test case at the moment. Maybe it's working on dev-3.x
, maybe the bug is still there. In all cases we should add a test case. If you feel like it, the IDE situation is way better now than it was one year ago.
You can open the apollo-android/tests
composite project in a recent IntelliJ and it should work fine. Feel free to send a PR. Or if it's been way too long since last year, we'll get on it at some point.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Kotlin usage and allow us to serve you better.
Summary I am trying to load a record from the Apollo cache. I know the record exists in the SQL cache. However,
LruNormalizedCache
has an incomplete record forQUERY_ROOT
that it returns fromloadRecord
so the entire cache lookup fails. Steps:maxEntries
things inserted into thelruCache
QUERY_ROOT
becauseperformMerge
doesn't checknextCache
before storing the resultapolloClient.apolloStore().read(query).execute()
) and get an exception that the record couldn't be loaded.I'm going to try to write a testcase that shows this bug but I'm having trouble importing this project into AS.
Version 1.3.2