Skip to content

Instantly share code, notes, and snippets.

@daveols
Created July 6, 2018 03:15
Show Gist options
  • Save daveols/692a234d5dc5090dcde9be69e0fb5800 to your computer and use it in GitHub Desktop.
Save daveols/692a234d5dc5090dcde9be69e0fb5800 to your computer and use it in GitHub Desktop.
React Loads - loads level cache provider
const customCacheProvider = {
get: ...,
set: ...
}
const Bacon = () => (
<Loads cacheKey='bacon' cacheProvider={customCacheProvider} fn={getBacon}>
...
</Loads>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment