Skip to content

When passing an array of extensions, only the name of the final extension installed is returned #180

Closed
@timsgardner

Description

@timsgardner

For example,

  const installed = await installExtensions([REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS]);
  console.log('installed:', installed);

will print

installed: Redux DevTools

whereas the jsdocs suggest it should return the names of all the extensions:

* @returns A promise resolving with the name or names of the extensions installed

It looks like this is because the reduce in install throws away previous string values:

(accum, extension) => accum.then(() => install(extension, options)),

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions