Created
January 11, 2019 13:09
-
-
Save mfrachet/0447c84737f2a350921766a5e65bcb65 to your computer and use it in GitHub Desktop.
react-cache-custom-fetch2.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const customFetch = url => { | |
if (cache) { | |
return cache | |
} | |
throw { type: 'type', url } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment