Skip to content

fetch option is confused with a computed option #34

@futpib

Description

@futpib

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions