Skip to content

Commit

Permalink
Adjust docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Nov 14, 2024
1 parent 9e42d6c commit e057ade
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/useMultiRootEditor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ describe( 'useMultiRootEditor', () => {

describe( 'semaphores', () => {
const testSemaphoreForWatchdog = enableWatchdog => {
it( 'should assign properly `data` property to editor even if it is still mounting', { retry: 3 }, async () => {
it( 'should assign `data` property to the editor even if it is still mounting', { retry: 3 }, async () => {
const deferInitialization = createDefer();

class SlowEditor extends TestMultiRootEditor {
Expand Down Expand Up @@ -933,9 +933,9 @@ describe( 'useMultiRootEditor', () => {

await timeout( 500 );

// Depending on the execution order on the event loop this `setData` might be delayed by the React engine.
// It happens only if event loop is busy and React has to wait for the next tick a little bit longer than usual.
// It does not play well with `waitFor` below so we added few retries to make it more stable.
// Depending on the execution order on the event loop, this `setData` might be delayed by the React engine.
// It happens only if the event loop is busy and React has to wait for the next tick a little bit longer than usual.
// It does not play well with the `waitFor` below, so we added a few retries to make it more stable.
// It should not be a problem in real life, as it is a rare case and might be solved in future React versions.
result.current.setData( {
intro: 'Hello World!',
Expand Down

0 comments on commit e057ade

Please sign in to comment.