Skip to content

[BUG] no output callbacks doesn't trigger as initial callback. #3770

@T4rk1n

Description

@T4rk1n

If you have a callback with no output and an initial input, the initial callback will not fire.

Example:

from dash import Dash, html, Input, callback

app = Dash()

app.layout = html.Div([
    html.Button("Start", id="start-btn", n_clicks=0),
])


@callback(
    Input("start-btn", "n_clicks"),
)
def update(n_clicks):
    print(f"Clicked {n_clicks}")

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