How to do "Message Flashing" like flask? #1454
Closed
4n1qz5skwv
started this conversation in
General
Replies: 2 comments 7 replies
-
This would be considered an anti-pattern in Litestar, since it magically mutates hidden state that's being injected into the response data at some point. The way to do this depends on what exactly it is you are trying to achieve. The example you provided should arguably have been a proper HTTP exception ( |
Beta Was this translation helpful? Give feedback.
7 replies
This comment was marked as disruptive content.
This comment was marked as disruptive content.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://flask.palletsprojects.com/en/2.2.x/patterns/flashing/
How to do this LiteStar?
Beta Was this translation helpful? Give feedback.
All reactions