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
I found there is an inconsistency between the in-memory cache and persistent cache with the PersistMapper setting (@persist tag ) especially when we want to query nested items.
I found that localStorage has
{
"ROOT_QUERY": {
"__typename": "Query",
"FooQuery@persist": {
"FooField": [
{
"__ref": "FooType:02-19422af1-ee18-474b-8118-69f60309a618-078d4433"
},
}
}
only.
but it doesn't have FooType in the persistent cache, but the in-memory cache has it.
this cause the breakage to the useQuery API that it always queries the network
The text was updated successfully, but these errors were encountered:
I found there is an inconsistency between the in-memory cache and persistent cache with the PersistMapper setting (@persist tag ) especially when we want to query nested items.
I found that localStorage has
{
"ROOT_QUERY": {
"__typename": "Query",
"FooQuery@persist": {
"FooField": [
{
"__ref": "FooType:02-19422af1-ee18-474b-8118-69f60309a618-078d4433"
},
}
}
only.
but it doesn't have FooType in the persistent cache, but the in-memory cache has it.
this cause the breakage to the useQuery API that it always queries the network
The text was updated successfully, but these errors were encountered: