[FRONT COMPONENTS] Serialize events through the worker boundary (#17767)
- Introduces a SerializedEventData type that captures only serializable properties from DOM/React events - Updates `wrapEventHandler` in the host component registry to serialize native events via serializeEvent() before passing them across the worker boundary via postMessage, avoiding circular references and non-cloneable DOM nodes - Updates generated remote element event signatures to use RemoteEvent<SerializedEventData> instead of bare RemoteEvent, giving front-component authors typed access to event details
This commit is contained in:
@@ -20,6 +20,7 @@ var TestComponent = () => {
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
var test_component_front_component_default = globalThis.jsx(TestComponent, {});
|
||||
export {
|
||||
test_component_front_component_default as default
|
||||
|
||||
Reference in New Issue
Block a user