Open
Description
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:
- 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)
- Is there a reliable npm
async
/await
polyfill module available if we don't wish to upgrade to ES8?