Skip to content

Adopt new context tracking sysyem #1068

Closed
@guillermohs9

Description

@guillermohs9

Hi! I'm using this extension is a couple of Flask projects and a Quart one. When trying to migrate the Quart app to it's latest version, the extension stopped working with the flask_patch:

ImportError: cannot import name '_app_ctx_stack' from 'quart.flask_patch'

According to what I understand from this answer, _app_ctx_stack will soon no longer be available in Flask either.

According to Quart's changelog:

Remove usage of LocalStacks, using ContextVars more directly. This
should improve performance, but introduces backwards
incompatibility. _*_ctx_stack globals are removed, use *_context
instead. Extensions should store on g as appropriate.

Are there any plans on making the appropiate changes on this extension to support this newer Quart release and Flask's future releases that drop _app_ctx_stack?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions