apicase / core

2 KB library to organize your APIs in a smart way

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

start Event not firing

MLDMoritz opened this issue · comments

Hey,

I want to show a loading indicator so I want to use the start event to set a loading boolean.
However the start event is not firing, the finish event is firing.

doRequest(payload)
    .on("start", () => {
        console.log('loading true');
    })
    .on("finish", () => {
        console.log('loading false');
    });

I am using ApiService and the fetch adapter.