dashR icon indicating copy to clipboard operation
dashR copied to clipboard

No error thrown (but there should be) when callbacks have a period character in the ID of an input/output/state

Open daattali opened this issue 4 years ago • 0 comments

I learned yesterday that periods should not be allowed in IDs in Dash. I just tried the following app, and I didn't receive any errors. The app did not work, but the only error was in the javascript console in the browser - that's not useful for R developers, they wouldn't think to look there. The error needs to happen in the R console.

library(dash)

app <- dash_app()

app %>% set_layout(
  dccInput("my.name", "dean"),
  div(id = "out")
)

app %>% add_callback(
  outputs = output("out", "children"),
  params = input("my.name", "value"),
  I
)

app %>% run_app()

daattali avatar Oct 22 '21 18:10 daattali