45 revealed that we're missing a test for this use case/function signature mentioned in the docs
// In this case the tracking data depends on
// some unknown (until runtime) value
@track((props, [event]) => ({ // NOTE: This PR would change this function signature
action: 'click',
label: event.currentTarget.title || event.currentTarget.textContent
}))
handleClick = (event) => {
if (this.props.onClick) {
this.props.onClick(event);
}
}
45 revealed that we're missing a test for this use case/function signature mentioned in the docs