1.0.3 • Published 7 years ago
fetch-once-q v1.0.3
Setup
yarn add fetch-once-q
or
npm install --save fetch-once-q
Use
import { json as fetchJSON } from 'fetch-once-q';
fetchJSON('http://api.mysite.com/products/1').then(r=>console.log(r));
fetchJSON('http://api.mysite.com/products/1').then(r=>console.log(r));
// Check the Network tab in the dev tools.