You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.warn('[Slickgrid-Universal] Please note that the grid option `registerExternalResources` was deprecated, please use `externalResources` instead.');
console.warn('[Slickgrid-React] Please note that the grid option `registerExternalResources` was deprecated and will be removed in next major, please use `externalResources` instead.');
401
+
}
402
+
387
403
this.initialization(this._eventHandler);
388
404
this._isGridInitialized=true;
389
405
@@ -622,15 +638,7 @@ export class SlickgridReact extends React.Component<SlickgridReactProps, State>
622
638
this.serviceList=[];
623
639
624
640
// dispose all registered external resources
625
-
if(Array.isArray(this._registeredResources)){
626
-
while(this._registeredResources.length>0){
627
-
constresource=this._registeredResources.pop();
628
-
if(resource?.dispose){
629
-
resource.dispose();
630
-
}
631
-
}
632
-
this._registeredResources=[];
633
-
}
641
+
this.disposeExternalResources();
634
642
635
643
// dispose the Components
636
644
this.slickEmptyWarning?.dispose();
@@ -678,6 +686,18 @@ export class SlickgridReact extends React.Component<SlickgridReactProps, State>
@@ -1405,10 +1425,21 @@ export class SlickgridReact extends React.Component<SlickgridReactProps, State>
1405
1425
returnoptions;
1406
1426
}
1407
1427
1428
+
/** Add a register a new external resource, user could also optional dispose all previous resources before pushing any new resources to the resources array list. */
0 commit comments