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
Previous closed issues that are related #6686
and #6659
However this timeloading is false on the first render, data is undefined.
See the following screenshot,
If i expand out the cache.data.data.[MyType:ID] I can see that the fully cached object is available on the first render.
However via useQuery i am getting undefined
Version @apollo/client 3.5.6
The text was updated successfully, but these errors were encountered:
dan-cooke
changed the title
[regression] useQuery returns undefined on first render with data in cache
[regression] useQuery returns undefined data on first render with data in cache
Jan 6, 2022
Okay I just checked and this issue is still happening for me even in 3.1.0 (the version where it was reportedly fixed)
So it may be a "me" issue.
Still investigating
dan-cooke
changed the title
[regression] useQuery returns undefined data on first render with data in cache
Cache redirect via type policy causes useQuery to return undefined on the first render, despite having data in the cache
Jan 6, 2022
Previous closed issues that are related
#6686
and
#6659
However this time
loading
isfalse
on the first render,data
is undefined.See the following screenshot,
If i expand out the
cache.data.data.[MyType:ID]
I can see that the fully cached object is available on the first render.However via
useQuery
i am gettingundefined
Version
@apollo/client
3.5.6The text was updated successfully, but these errors were encountered: