Do ModelView initialization actions before others (#11512)

This commit is contained in:
Charles Gagnon
2020-07-27 10:40:40 -07:00
committed by GitHub
parent 6d77176b92
commit 67ddf81562
3 changed files with 32 additions and 24 deletions

View File

@@ -67,8 +67,9 @@ export interface IModelStore {
*
* @param componentId unique identifier of the component
* @param action some action to perform
* @param isInitialization whether this is an initialization action that will run before other actions
*/
eventuallyRunOnComponent<T>(componentId: string, action: (component: IComponent) => T): Promise<T>;
eventuallyRunOnComponent<T>(componentId: string, action: (component: IComponent) => T, isInitialization?: boolean): Promise<T>;
/**
* Register a callback that will validate components when given a component ID
*/