Unnecessary state object generation
hurelhuyag opened this issue · 1 comments
hurelhuyag commented
I just tried to generate PetClinic
project again with latest xoom
1.5.3-SNAPSHOT
version and I found this. In this example, PetEntity::register
method constructing new PetState
object and passing it to PetRegistered
event and PetRegistered
event object deconstructing it. Instead, PetEntity
can just pass values directly to PetRegistered
event.
VaughnVernon commented
Thanks @hurelhuyag. I discussed this with @danilo-ambrosio and we decided for now we will keep it this way. We will likely change as you suggested, but for now it is lower priority.