Skip to content

Commit 5ad4692

Browse files
committed
getHandle can be called multiple times.
We might not want to override existing reactive variable if there are already dependencies on it.
1 parent 26413ee commit 5ad4692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ComputedField
99
Tracker.autorun (computation) ->
1010
value = func()
1111

12-
if computation.firstRun
12+
unless lastValue
1313
lastValue = new ReactiveVar value, equalsFunc
1414
else
1515
lastValue.set value

0 commit comments

Comments
 (0)