Skip to content

Warning thrown when a callback has multiple outputs and multiple inputs and # of inputs is not a multiple of # of outputs #269

Open
@daattali

Description

@daattali

The following results in a warning after trying to add the callback:

library(dash)
app <- Dash$new()
app$layout(dashHtmlComponents::htmlDiv())
app$callback(
  list(
    output("out1", "children"),
    output("out2", "children")
  ),
  params = list(
    input("in1", "value"),
    input("in2", "value"),
    input("in3", "value")
  ),
  function(...) {}
)

After some testing, I think it might only happen when there are multiple inputs and multiple outputs and the number is not equal. If you remove one output, it works (1 vs 3). If you remove one input it also works (2 vs 2). If you add an output, it works (3 vs 3).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions