-
-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
Describe the feature
It would be really useful to invalidate the cache automatically for queries that depend on the updated data and have the same __typename.
Example:
- item with
__typenameBook gets deleted -> refetch query with list of books
That topic was already previously talked about: (#58 (comment))
[...] Would you want a way to automatically trigger refetches of the deleted value or is that something you would do by hand? Or just the next time the query is fired?
It would be nice to have a similar functionality what urqls GraphCache provides:
https://commerce.nearform.com/open-source/urql/docs/graphcache/normalized-caching/
Another thing to keep in mind is how we could invalidate the SvelteKit load functions automatically whenever a GraphQL mutation gets triggered.
Criticality
cool improvement, my projects will benefit from it
Metadata
Metadata
Assignees
Labels
No labels