Storing state in App #4472
daddycocoaman
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This discussion references #4107. It was labeled as answered by the topic creator, but I think it fell short a little bit.
I think it might be useful to have a context dict class for the App (similar to how Typer/Click have one) with a function to request the type of the context item as well. For example:
Currently, you can add attributes to the App class you create, but accessing those attributes with type info from a Widget doesn't work because
self.app
returns anApp[object]
and not the created App class.Beta Was this translation helpful? Give feedback.
All reactions