Skip to content

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

@daattali

Description

@daattali

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions