`fetch` option is confused with a computed option
futpib opened this issue · 0 comments
futpib commented
fetch
option is called twice, once from computeObject
and once from the actual request call.
require('fetch-plus').createClient('', {
fetch: () => {
console.log('called');
return { ok: true };
}
}).get('');
Output:
called
called