Skip to content

Commit a0fa68f

Browse files
committed
go back to using ggplotly() to prepare the widget for shiny rendering
* the extra call to plotly_build() forces more computation then necessary and fixes plotly#1569
1 parent 2a439bc commit a0fa68f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/shiny.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ renderPlotly <- function(expr, env = parent.frame(), quoted = FALSE) {
5858
# Converts a plot, OR a promise of a plot, to plotly
5959
prepareWidget <- function(x) {
6060
p <- if (promises::is.promising(x)) {
61-
promises::then(x, plotly_build)
61+
promises::then(x, ggplotly)
6262
} else {
63-
plotly_build(x)
63+
ggplotly(x)
6464
}
6565
register_plot_events(p)
6666
p

0 commit comments

Comments
 (0)