Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the
StructTreeLayerBuilder.render
method
In hindsight it occurred to me that there's a couple of smaller issues with this method after it's made asynchronous (in PR 18658). - If the `render`-method is invoked back-to-back the existing caching doesn't guarantee that re-parsing won't occur, which we can address by introducing a new (private) promise. - If there's any errors fetching and/or parsing the structTree-data, we'd attempt to parse it again on re-rendering despite that being pointless.
- Loading branch information