mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
* 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:
2
NEWS.md
2
NEWS.md
@@ -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
|
||||
============
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user