Ashley
with sdk v2, what is the correct way to dispatch script interface events?
normally on the instance class, we had a wrapper function DispatchScriptEvent
which took a few parameters,
DispatchScriptEvent(name, cancelable, additionalProperties)
when looking at sdkv2, DispatchScriptEvent does not exists on the exposed interface.
dispatchEvent, exists on the object, but that does not take an overload for additional parameters? will a wrapper like DispatchScriptEvent be added? is the guidance to manually add additional parameters to the c3.event after it's been initialized?
const event = new C3.Event("event-id", true);
event.additionalData = {...};
this.dispatchEvent(event);