Skip to content

Commit 2277263

Browse files
committed
Isolate names(session$userData$plotlyInputStore) to prevent spurious updates (plotly#2337)
1 parent 16261c3 commit 2277263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/shiny.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ event_data <- function(
193193

194194
} else {
195195

196-
eventHasStorage <- eventID %in% names(session$userData$plotlyInputStore)
196+
eventHasStorage <- eventID %in% shiny::isolate(names(session$userData$plotlyInputStore))
197197

198198
if (!eventHasStorage) {
199199
# store input value as a reactive value to leverage caching

0 commit comments

Comments
 (0)