Join GitHub today
feat(platform-server): use EventManagerPlugin on the server #24132
Previously event handlers on the server were setup directly. This change makes it so that the event registration on the server go through EventManagerPlugin just like on client. This allows us to add custom event registration handlers on the server which allows us to hook up preboot event handlers cleanly.
Please check if your PR fulfills the following requirements:
What kind of change does this PR introduce?
What is the current behavior?
The server renderer directly sets up DOM event handlers on the server.
What is the new behavior?
The server renderer uses the EventManagerPlugin system to register DOM event handlers. This is useful to hook up a different event registration on the server - for instance add an attribute for every element that has an event handler so that preboot can query and buffers only those elements.
Does this PR introduce a breaking change?