• Phil Pluckthun's avatar
    fix(graphcache): Switch fragment heuristic to always be truthy on writes (#2455) · cabbcd7e
    Phil Pluckthun authored
    Previously we assumed that if an unknown fragment was being applied it'd
    be an exceptional case and would not have to apply if the cache doesn't
    already know all its fields.
    
    We can now (theoretically) safely switch to always return `true` on writes.
    When we encounter a field that isn't in the data, as returned by the API
    then we can eagerly write anyway and let it fail.
    
    This is important for cases where the fragment applies to an interface
    of a node rather than to a concrete type.
    cabbcd7e
Name
Last commit
Last update
..
index.ts Loading commit data...
invalidate.ts Loading commit data...
query.test.ts Loading commit data...
query.ts Loading commit data...
shared.ts Loading commit data...
write.test.ts Loading commit data...
write.ts Loading commit data...