You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for bringing this up @RomainEconomics. I was not aware about the ability to yield state in a lifespan context manager. Would you like to create a pull request for this?
Description
Following this example: https://github.com/zauberzeug/nicegui/tree/main/examples/fastapi
But simply adding a lifespan with some state in the main app:
When calling the "/" route, the state dict is empty.
However, this works normally when running the app without mounting the frontend.
This seems to come from the fact that in the ui_run_with.py the state is not passed.
When yielding the state, this works again
The text was updated successfully, but these errors were encountered: