The Apollo Client currently replaces values of fetchPolicy
when isPolling
is set. This will often lead to unintended caching behavior. Specifying a value of no-cache
for initialFetchPolicy
is the only way to prevent the caching of polled queries. This rule enforces that the initialFetchPolicy
is set when isPolling
is set to make sure the user is aware of the caching behavior.
eslint-plugin-enforce-initial-fetch-policy
1.0.8 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i eslint-plugin-enforce-initial-fetch-policy
Weekly Downloads
8
Version
1.0.8
License
Apache-2.0
Unpacked Size
37.6 kB
Total Files
26