Falko Schindler
Falko Schindler
@mjchl If I understand correctly, your code adds more and more blocking code (`time.sleep(1)`) to the main thread. This is usually a bad idea, as discussed in [this FAQ](https://github.com/zauberzeug/nicegui/wiki/FAQs#how-to-not-get-the-reconnect-popup-or-avoid-laggy-interaction). Anyway,...
Alright. I'll close this PR and add a link to the new one later. 👍🏻
I just found a reproduction for the `KeyError` when pushing to `ui.log`: ```py from typing import Callable from nicegui import ui callbacks: list[Callable] = [] @ui.page('/page') def page(): log =...
Uvicorn just fixed https://github.com/encode/uvicorn/issues/2289 and released version 0.30.0. Can anyone check if this by any chance also fixes our issue?
@07rohanraj just solved a similar issue [like this](https://github.com/zauberzeug/nicegui/discussions/4181#discussioncomment-11819633): ```py def shutdown_app(): print("Shutting down the application...") logging.info("Shutting down the application...") sys.exit(0) app.on_shutdown(shutdown_app) ui.run(native=True, window_size=(1400, 800), reload=False, port=native.find_open_port()) ``` Can anyone confirm...
Is there anyone still around to check - if the problem still persists, - if the uvicorn release mentioned in https://github.com/zauberzeug/nicegui/issues/2107#issuecomment-2134640373 helps, or - if the workaround mentioned in https://github.com/zauberzeug/nicegui/issues/2107#issuecomment-2587561324...
> However, with reload=True, app_shutdown is never called, independent of unicorn version (0.34.0, 0.30.0, 0.29.0, or 0.25.0) and the server process stays active consentient with the original issue reported above....
@python-and-novella Sounds great! Does it also work when clicking on the "X" button as @PawelRoman described in the original post? If yes, I'd suggest to close this issue. It's probably...
I'll close this stale PR. Feel free to continue the discussion here or on a new feature request in case you have new ideas on how to improve the API...
Thanks, @frankvp11! I just fixed a few minor things, but it already looks quite nice. 🙂