angular-ui/ui-grid

UI grid memory leak issue

Open

#6,049 创建于 2017年3月2日

在 GitHub 查看
 (3 评论) (3 反应) (0 负责人)JavaScript (2,496 fork)batch import
help wantedseverity: memory leak

仓库指标

Star
 (5,395 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南