Skip to content
New issue

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

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

Already on GitHub? # to your account

[Feature Request] Make app validation optional when using pages #2172

Closed
AnnMarieW opened this issue Jul 30, 2022 · 0 comments · Fixed by #2182
Closed

[Feature Request] Make app validation optional when using pages #2172

AnnMarieW opened this issue Jul 30, 2022 · 0 comments · Fixed by #2182

Comments

@AnnMarieW
Copy link
Collaborator

When using pages to make a multi page app, one of the nice features is that it automatically validates the layout. However as pointed out in this forum post it can make the initial load of an app slow if some of the layout functions are slow.

A possible solution is to make the validation optional, then this section would be skipped. (I tried it and it seems to work)

Validation could be turned off like this:

app = das.Dash(__name__, use_pages=True, set_validation_layout=False,  suppress_callback_exceptions=True)

or maybe if set_validation_layout=False, it could automatically set suppress_callback_exceptions=True

Any downside to doing this?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant