-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Functions as layout no longer work (_validate_layout throws error) #334
Comments
Checking if the layout is a function and then calling it once to validated the returned layout would be an appropriate fix. |
Will have a fix for this soon, this was introduced in 0.22.0 via #294 so you can downgrade to 0.21.1 for now or edit as above. |
Actually it was introduced with version 0.24.2 in commit e190768 so 0.24.1 works fine. |
Yes, it's from the disallow duplicate ids of 0.24.2. @rmarren1 Can fix this with |
Ah right, forgot more was added to validation. Thanks for the detailed report @phifre ! |
Fix for this released in |
Hello,
since the
_validate_layout
method was introduces in dash.py setting functions as layout no longer works, because callingtraverse()
on an function fails.Setting a function as layout is necessary to make the app reload the layout on page reload as described in the documentation.
Currently the fastest option is to remove the
_validate_layout
call in the_setup_server
method.The text was updated successfully, but these errors were encountered: