CacheFetchPolicy
Specifies behavior for a caching API.
Entries
Returns values from the cache, or throws an error if not available. It won't initiate a fetch.
Ignore whether the cache has a value or not and fetch the most up-to-date data. This will return an error if the fetch request fails
Returns the cached data if available and not stale. If not available or stale, it fetches up-to-date data. Note that this won't return stale data even if fetch request fails
(default) returns the cached data if available (even if stale). If not available, fetches up-to-date data. If cached data is stale, it initiates a fetch in the background.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.