You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This appears to be due to this line, which (I presume unintentionally) creates a reactive dependency on the names of this reactiveValues list (not just the specific relevant value):
I believe this is a mainly an issue if you try to avoid the infamous "event tied a source ID" warning by preventing various event_data() calls from running until after their respective plots have (probably) rendered, as recommended.
Click on one of the checkboxes to enable a plot and its respective event_data(). Then click on a second. Note the "time updated" on the second plot's output dump as you enable the third plot--it will change, as names(session$userData$plotlyInputStore) triggers a spurious update. (If you refresh and click on a point on the first plot before enabling the second, the first one will spuriously update as well). We can see this dependency in the reactlog:
The text was updated successfully, but these errors were encountered:
dvg-p4
changed the title
This line creates an unnecessary reactive dependency that causes event_data() reactives to fire whenever a new handler is registeredevent_data() reactives needlessly fire whenever a new handler is registered
Feb 1, 2024
dvg-p4
changed the title
event_data() reactives needlessly fire whenever a new handler is registered
All event_data() reactives needlessly fire whenever a new one is registered
Feb 1, 2024
dvg-p4
added a commit
to dvg-p4/plotly.R
that referenced
this issue
Feb 5, 2024
This appears to be due to this line, which (I presume unintentionally) creates a reactive dependency on the names of this reactiveValues list (not just the specific relevant value):
plotly.R/R/shiny.R
Line 196 in 16261c3
I believe this is a mainly an issue if you try to avoid the infamous "event tied a source ID" warning by preventing various
event_data()
calls from running until after their respective plots have (probably) rendered, as recommended.Reprex
Click on one of the checkboxes to enable a plot and its respective
event_data()
. Then click on a second. Note the "time updated" on the second plot's output dump as you enable the third plot--it will change, asnames(session$userData$plotlyInputStore)
triggers a spurious update. (If you refresh and click on a point on the first plot before enabling the second, the first one will spuriously update as well). We can see this dependency in the reactlog:The text was updated successfully, but these errors were encountered: