angular-ui/ui-grid

UI grid memory leak issue

Open

#6049 aperta il 2 mar 2017

Vedi su GitHub
 (3 commenti) (3 reazioni) (0 assegnatari)JavaScript (2496 fork)batch import
help wantedseverity: memory leak

Metriche repository

Star
 (5395 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I am using UI grid v4.0.2, where its mentioned memory leak issue is fixed. I have total 174MB data bind to grid. If I do page refresh then only first time its loading data. but When I am trying to call api to get data and bind to grid second time its crashing. Second time it should release memory but its not releasing , I can see previous memory references.

  • Tried to reload state before calling api next time(as on page refresh its working first time)

  • Tried cleaning all grid objects on $destroy and reset method before calling second time.

    delete $scope.gridApi; delete gridApi; delete $scope.gridData;

But its crashing second time.

Guida contributor