I need to get primaryImageAttribute from the Entity Metadata.
I'm wanting to render the primary image column in the grid cell in the CellRendererOverrides.tsx generateCellRendererOverrides function. My generateCellRendererOverrides function works fine ...

Now, context.utils.getEntityMetadata(entityName) returns a promise of the EntityMetadata. Here it is in my index.ts init method ...

When the EntityMetadata promise appears, the const variable primaryImageAttribute will be set to the primaryImageAttribue returned in the EntityMetadata promise.
So, to wait for the EntityMetadata promise and primaryImageAttribute to appear, I've wrapped async around an anonymous function and put await on the primaryImageAttribute variable.
There's no red squigglies in CellRendererOverrides.tsx or index.ts.
The Dev Tools debugger runs up to "return myValue" in the success function returned by "getMetadata(entityName).then( ..." that supplies the value for my primaryImageAttribute variable ...

And then no further breakpoints are hit. It just disappears.
Any ideas?
Or, my handling of the promise / async may be wrong or just simply not destined to work. If so, is there some non-promise, actual synchronous value, way of getting the primaryImageColumn value from the Entity Metadata?