Skip to content

PersistMapper/PersistLink doesn't support nested cache item reference #473

Open
@yjyongz

Description

@yjyongz

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions