-
Notifications
You must be signed in to change notification settings - Fork 198
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
dataIdFromObject
is never called
#569
Labels
Comments
Looks like there's been some progress on this in alpha 10, it is now being called, but it's still not quite working. I tried just calling |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Describe the bug
dataIdFromObject
is never called ininMemoryCacheOptions
and hence it's impossible to set fallback cache idsExpected behaviour
to be able to create fallback cache ids with
dataIdFromObject
Reproduction
Add
dataIdFromObject
toinMemoryCacheOptions
and adddebugger
or console logs and you'll see it never gets hit, you'll also notice if you use tools to view the client cache the cache ids are not altered by anything in this functionI've tried this with both
useQuery
anduseAsyncQuery
. I am able to override with individualtypePolicies
but this is extremely brittle since this is a system wide change we need to make.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: