NerdWalletOSS / apollo-cache-policies

An extension of the Apollo 3 cache with support for advanced cache policies.
Apache License 2.0
157 stars 21 forks source link

Changes for v2 release #38

Closed danReynolds closed 3 years ago

danReynolds commented 3 years ago

Includes a couple changes for the V2 release including:

  1. Updates to useFragment/useFragmentWhere APIs. Changes how it works internally to base fragment field policy names off dynamic UUIDs instead of the name of the fragment. Now Returns the data directly on the result as opposed to nested within the field name (breaking change).
  2. Adds support for a default function syntax for invalidation policy events.
  3. Updates some documentation of newer APIs