Closed ryuujo1573 closed 1 year ago
Why event can be emitted without EventArgs?
Traditional MVC by convention has a view query the model after being notified that some event has occurred, rather than include whats changed/happened with the notification.
Why event can be emitted without EventArgs? This is not ideal, for mainly non nullable values are used.
Emit an event without arguments is meaningless. I suggest use required positional argument
T
instead. For those cases void values are used, just useEvent<SomeType?>
onEvent<T extends EventArgs?>