Skip to content

Response.entities is not immediately available after await this.api().get(...) #89

@alex-kowalczyk

Description

@alex-kowalczyk

The following code logs that response.entities is null, even though later (e.g. when clicking 'expand' triangle' in chrome's console log) the data is there - see the screenshot. I haven't found anything in documentation on that behavior. Is it a bug, or should something more be awaited?

static async getData() {
  const response = await this.api().get(uri);
  console.log('after': response);
}

image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions