Why should we use a flash/message middleware like connect-flash? What benefits/values does it brings to a nodejs web application?
Can't we simply send a response object instead of using it?
Does it complement a front-end notification tools like toastr?
I have used express-flash which is used by the server to send flash messages to the rendering engine. If you are using jade as your rendering engine, you can use a partial jade file to detect the presence of these flash messages and show appropriate animations or display. Whereas on the other hand if we are using a front end notification tool we need to implement a listener on the client side to explicitly detect these toasts. I assume connect-flash is similar