Services: 'undefined' in method arguments gets converted to null when calling a remote service
alisey opened this issue · 0 comments
alisey commented
If you have the following service:
class EchoService {
public echo(message = 'hello world') {
return message;
}
}
Calling it from a different environment as EchoService.echo(undefined)
will return null
instead of 'hello world'
.
This has tripped me a few times. Undefined should stay undefined.