fetch-worker

1.0.7 • Public • Published

Fetch Worker

React Fetch Worker is an ES6 fetch wrapper that allows you to handle HTTP requests in a separate thread (Web Worker). Please note that this module is currently in its early stages of development. Therefore if you think you can help or suggest changes, you will be welcome to contact me :) How to use it:

API.fetch ('http: //my.api/service.json', { method: 'GET' }). Then (
    (response) => {
        console.log (response);
    }
    (reason) => {
        console.warn (reason);
    }
);

/fetch-worker/

    Package Sidebar

    Install

    npm i fetch-worker

    Weekly Downloads

    50

    Version

    1.0.7

    License

    MIT

    Last publish

    Collaborators

    • marborkowski.react