Skip to content

Make async/await available to the code base #43

Open
@iconix

Description

@iconix

PR #22 introduced a getCachedValue method on the Storage abstraction in frontEndGlobals.ts. It was created to avoid the asynchronicity of calling getValue inside of the ratings helper feature, which was making ratingsPanel.tsx much less unit testable.

See full discussion.

getCachedValue could be avoided if we could await the completion of some asynchronous tasks before moving on with execution in the calling method.

So this task tracks investigation and work needed to polyfill async/await. Some initial questions:

  1. Do we want to wait for ES8 (ES2017) to (maybe) include it, and for browsers to then support ES8? (caveat: we still need to continue to support IE 10+, which only supports up to ES5)
  2. Is there a reliable npm async/await polyfill module available if we don't wish to upgrade to ES8?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions