From 77f2b1d1cc5d9633856ea23c30b36bb6f225dea9 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Thu, 23 Jun 2016 11:41:24 -0400 Subject: [PATCH] fix: infinite digest loop with ngRepeat + ImmutableJS (#514) The addition of `ImmutableJS` caused some issues with Angular's digest loop. Since `Immutable#toJS()` returns a new object/array every time (that is, different references), it caused AngularJS to get stuck in an infinite digest loop when using `ngRepeat` over a function that called `Immutable#toJS()`. Signed-off-by: Juan Cruz Viotti --- .../templates/drive-selector-modal.tpl.html | 2 +- lib/gui/models/drives.js | 26 +++++++++++++++++-- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html b/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html index 33babfe0..58074b2d 100644 --- a/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html +++ b/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html @@ -5,7 +5,7 @@