angular-ui/ui-grid

UI grid memory leak issue

Open

#6,049 opened on Mar 2, 2017

View on GitHub
 (3 comments) (3 reactions) (0 assignees)JavaScript (5,395 stars) (2,496 forks)batch import
help wantedseverity: memory leak

Description

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.

Contributor guide