Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Multi Page App - First Load Fails #2171

Closed
sjtrny opened this issue Jul 30, 2022 · 2 comments
Closed

[BUG] Multi Page App - First Load Fails #2171

sjtrny opened this issue Jul 30, 2022 · 2 comments

Comments

@sjtrny
Copy link

sjtrny commented Jul 30, 2022

Describe your context

dash==2.6.0

Describe the bug

First request made to a multi-page app fails. Refreshing the page resolves the issue.

Expected behaviour

First request should work.

Demo

dash_error.mp4

Code

import dash
from dash import Dash, html

app = Dash(__name__, use_pages=True, pages_folder='')

app.layout = dash.page_container

layout = html.Div(children=[
    html.H1(children='Hello Dash'),
])

dash.register_page("index", layout=layout, path="/", title="Index")

if __name__ == "__main__":
    app.run(host='0.0.0.0', debug=True)
@ned2
Copy link
Contributor

ned2 commented Jul 30, 2022

I believe this is a known bug that was introduced by #2126 There's an open PR to revert the change that introduced the regression: #2168

@sjtrny
Copy link
Author

sjtrny commented Aug 1, 2022

Thanks @ned2!

@sjtrny sjtrny closed this as completed Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants