Callback with navbar

After a quick glance, I think your conditional will never be satisfied as “New York City” is a label, not a value.

That said, this should not make your app freeze… Two suggestions:

  • Is it freezing when you open “/” or a specific path? Note that if you just start your app and open the browser, this will direct you to pathname="/" and you don’t have a route for that.

  • Run in debug=True and see if an error pops up.

As a side note, there are tons of good work to add a better support for multi-page apps and you might benefit from it.
Please take a look on this post.

1 Like