Flask's context stack has been deprecated in favour of a Python ContextVar and all use of push/pop/top on the context stack is also deprecated.
Flask is maintaining a fake stack over the top of the ContextVar, however this seems to break Spinach. I'm not sure why yet but it may be because there's actually only one value, not a stack, and using a pop will unset the context completely.
Flask's context stack has been deprecated in favour of a Python ContextVar and all use of push/pop/top on the context stack is also deprecated.
Flask is maintaining a fake stack over the top of the ContextVar, however this seems to break Spinach. I'm not sure why yet but it may be because there's actually only one value, not a stack, and using a pop will unset the context completely.