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
{{ message }}
This repository was archived by the owner on Jun 1, 2025. It is now read-only.
fix(core): unsubscribe every possible events (#611)
* fix(core): unsubscribe every possible events #610
- causes memory heap size to keep growing
* refactor: use subscriptions array instead of single subscription
* fix: remove keydown binding when disposing of externalCopy plugin
* fix: possible leak, body onClick event not unbound in multiple-select
Sort/Filter on client side only using SlickGrid DataView (<a href="https://github.com/ghiscoding/Angular-Slickgrid/wiki/Sorting" target="_blank">Wiki docs</a>)
@@ -280,4 +280,8 @@ export class GridClientSideComponent implements OnInit {
This example demonstrates the use of Pinned (aka frozen) Columns and/or Rows (<a href="https://github.com/ghiscoding/Angular-Slickgrid/wiki/Pinned-(aka-Frozen)-Columns-Rows" target="_blank">Wiki docs</a>)
@@ -31,6 +31,12 @@ export class GridFrozenComponent implements OnInit {
31
31
this.prepareDataGrid();
32
32
}
33
33
34
+
ngOnDestroy(){
35
+
// unsubscribe every SlickGrid subscribed event (or use the Slick.EventHandler)
<li>You can also preload a grid with certain "presets" like Filters / Sorters / Pagination <a href="https://github.com/ghiscoding/Angular-Slickgrid/wiki/Grid-State-&-Preset" target="_blank">Wiki - Grid Preset</a>
subTitle=`Support multiple locales with the ngx-translate plugin, following these steps (<a href="https://github.com/ghiscoding/Angular-Slickgrid/wiki/Localization" target="_blank">Wiki docs</a>)
33
35
<ol class="small">
@@ -55,6 +57,7 @@ export class GridLocalizationComponent implements OnInit {
55
57
</ol>
56
58
`;
57
59
60
+
privatesubscriptions: Subscription[]=[];
58
61
angularGrid: AngularGridInstance;
59
62
columnDefinitions: Column[];
60
63
gridOptions: GridOption;
@@ -70,6 +73,11 @@ export class GridLocalizationComponent implements OnInit {
0 commit comments