Skip to content

Document title Updating... broken? #101

@etpinard

Description

@etpinard

Consider

# main.jl
using Dash, DashHtmlComponents

external_stylesheets = ["https://codepen.io/chriddyp/pen/bWLwgP.css"]

app = dash(;external_stylesheets)

app.layout = html_div() do
    html_button("CLICK ME"; id="btn"),
    html_div(id="output")
end

callback!(app,
          Output("output", "children"),
          Input("btn", "n_clicks")) do n_clicks
    if isnothing(n_clicks)
        return ""
    end
    sleep(5)
    return "Number of clicks: $n_clicks"
end

run_server(app, "0.0.0.0", debug=true)

and the following envs:

# base
  [1b08a953] Dash v0.1.3
  [1b08a953] DashHtmlComponents v1.1.3

and

# dev
  [1b08a953] Dash v0.1.4 `https://github.com/plotly/Dash.jl.git#dev`
  [1b08a953] DashHtmlComponents v1.1.3

Then julia --project=base main.jl gives:

Peek 2021-05-05 12-02

but with julia --project=dev main.jl we get

Peek 2021-05-05 12-04

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