[X] I documented the TypeScript code using JSDoc style.
Motivation and Context
To fix flaky client tests related to Apollon in #6955, I need to be able to wait for the next render cycle in React. To my knowledge, this is not possible without some "help" from the React code itself (or with a React testing library, which we don't use). Therefore, we need this PR.
Description
Added a new promise to the ApollonEditor called nextRender, which resolves when the next scheduled React render of the editor component happens. It also ensures that ApollonEditor.store will be properly initialized before it resolves.
Checklist
Motivation and Context
To fix flaky client tests related to Apollon in #6955, I need to be able to wait for the next render cycle in React. To my knowledge, this is not possible without some "help" from the React code itself (or with a React testing library, which we don't use). Therefore, we need this PR.
Description
Added a new promise to the
ApollonEditor
callednextRender
, which resolves when the next scheduled React render of the editor component happens. It also ensures thatApollonEditor.store
will be properly initialized before it resolves.Steps for Testing
@palsch/apollon:2.14.12
, where this PR is available as an NPM package.npm start
locally to check that the standalone editor still works.Test Coverage