-
Bug
-
Resolution: Incomplete
-
P1: Critical
-
None
-
6.5.3
-
None
I have observed this odd behaviour and I'm unsure if that is bug or if I'm doing something wrong:
this code prints "undefined" (which is certainly not the case)
signal save(MyValue value) // forwarding a signal with parameter onInnerSave: (value) => { console.log(value) // prints "undefined" root.save(value) // calls signal which fails due to undefined }
whereas this workaround works
signal save(MyValue value)
function saveWrapped(value) {
console.log(value) // prints the correct object
root.save(value) // calls signal, works just fine
}
onInnerSave: (value) => {
saveWrapped(value)
}
Child component signal:
signal innerSave(MyValue value)