How to use the whatwg-fetch.then function in whatwg-fetch

To help you get started, we’ve selected a few whatwg-fetch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mlaursen / react-md / docs_old / src / shared / utils / spotifyApi.js View on Github external
require.ensure(['whatwg-fetch'], require => {
        resolve(require('whatwg-fetch')(uri, options).then(response => response.json()));
      });
    });

whatwg-fetch

A window.fetch polyfill.

MIT
Latest version published 4 months ago

Package Health Score

93 / 100
Full package analysis