Skip to content

Question: getAgent documentation clarification #1464

@Roaders

Description

@Roaders

Question Area

  • App Directory
  • API
  • Context Data
  • Intents
  • Use Cases
  • Other

Question

On a discussion with @kriswest and @robmoffat it became clear to me that the implementation of getAgent will return a cached promise for any subsequent calls that are made to it. This should probably be documented along with the potentially unexpected behavior where any parameters passed to the function are ignored after the first call.

@kriswest also said that the case where getAgent fails and is then called again that the promise should be cleared and another attempt made.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions