Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yjyongz opened this issue Nov 4, 2022 · 0 comments
Open

Comments

@yjyongz
Copy link

yjyongz commented Nov 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant