Skip to content

Commit

Permalink
fix: fixed random condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kobezzza committed Jan 19, 2024
1 parent f1fb488 commit fde1cab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/component/init/states/before-destroy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,8 @@ export function beforeDestroyState(component: ComponentInterface): void {
Object.setPrototypeOf(unsafe, destroyedComponent);

dropRawComponentContext(unsafe);
}, Math.floor(Math.random() * 100));

// To avoid freezing during cleaning of a larger number of components at once,
// a little randomness is added to the process
}, Math.floor(Math.random() * 1000));
}

0 comments on commit fde1cab

Please sign in to comment.