Fix #117: Reactive expressions hold on to memory for longer than necessary (#1504)

* Fix #117: Reactive expressions hold on to memory for longer than necessary

* Fix broken link

* Add link to pull request
This commit is contained in:
Joe Cheng
2016-12-15 11:15:00 -08:00
committed by Winston Chang
parent accd70d4b4
commit bcefd1fbd8
2 changed files with 3 additions and 0 deletions

View File

@@ -27,6 +27,8 @@ shiny 0.14.2.9000
* Fixed [#1359](https://github.com/rstudio/shiny/issues/1359): `shinyApp()` options argument ignored when passed to `runApp()`. ([#1483](https://github.com/rstudio/shiny/pull/1483))
* Fixed [#117](https://github.com/rstudio/shiny/issues/117): Reactive expressions now release references to cached values as soon as they are invalidated, potentially making those cached values eligible for garbage collection sooner. Previously, this would not occur until the next cached value was calculated and stored. ([#1504](https://github.com/rstudio/shiny/pull/1504/files))
shiny 0.14.2
============

View File

@@ -526,6 +526,7 @@ Observable <- R6Class(
.mostRecentCtxId <<- ctx$id
ctx$onInvalidate(function() {
.invalidated <<- TRUE
.value <<- NULL # Value can be GC'd, it won't be read once invalidated
.dependents$invalidate()
})
.execCount <<- .execCount + 1L