Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels
Activity