Why did you choose the "x-" prefix for custom events name?

Hey,

I’ve been reading this doc regarding custom events and I was wondering what was the motivation for the choice to enforce a “x-” prefix on custom events names?
Of course I understand what it is used for, it’s pretty obvious, but I don’t fully understand the design choice here so that’s what I’m actually asking.

Thanks!

It’s so that we can add more events to components in future, without breaking existing apps. For example, when the Image component started supporting mouse-movement events, we were certain that nobody else was using the name mouse_move for a custom event.

2 Likes

Sorry for the long delay. Thanks for the answer!