Skip to content

DeprecationWarning: Changing state of started or joined application is deprecated #6804

Discussion options

You must be logged in to vote

Well, it only disallows assigning to top-level app object. So, you could just use a mutable object as a simple solution: app["state"] = {"current": "starting"}. You could maybe also create a custom class to more precisely represent the state. I think it's sufficiently common to have some kind of mutable object on the app (e.g. a ClientSession for making network requests).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fabianbuettner
Comment options

Answer selected by fabianbuettner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants