You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of my messages always have the same stamps in the dispatch
Have you tried building a middleware for that?
The envelope constructor could read the stamps assigned to the message
I'd rather keep the envelope dumb tbh. So, a 👎🏻 from me for stuffing that logic into the envelope class.
I'd like to reduce this code by adding one or more attributes to my message.
You could build a middleware that reads those attributes. The advantage of that approach would be that this feature could be turned off easily. When dispatching a lot of messages, I probably don't want messenger to reflect on each of them.
Description
Some of my messages always have the same stamps in the dispatch, I'd like to reduce this code by adding one or more attributes to my message.
The envelope constructor could read the stamps assigned to the message
Example
No response
The text was updated successfully, but these errors were encountered: