Components.js icon indicating copy to clipboard operation
Components.js copied to clipboard

Allow retrieving multiple components

Open RubenVerborgh opened this issue 4 years ago • 1 comments

Currently, instantiateFromUrl allows specifying one componentUrl. It would be interesting to specify an array and get back a key/value object.

RubenVerborgh avatar Dec 20 '20 22:12 RubenVerborgh

Implementation suggestion: it basically comes down to instantiating a Record<string, any> object; if needed, a dummy class could do:

class DummyRecord {
  constructor (record: Record<string, any>) {
    return record;
  }
}

RubenVerborgh avatar Dec 20 '20 22:12 RubenVerborgh