Documentation Related To Component:
fromEventPattern
Please check those that apply
Description Of The Issue
The behavior of fromEventPattern no longer matches what the documentation would suggest.
In particular it is stated that:
"If you need access to all event handler parameters (not only the first one), or you need to transform them in any way, you can call fromEventPattern with optional third parameter"
In the "Use with project function" example it has a comment that says the same thing but a different way.
The behavior appears to be that the observable will emit all the callback parameters as an array unless there is only one, in which case it will emit just the parameter without the array wrapper.
The commit 642a3a4 seems to confirm this behavior and also marks the resultSelector parameter as deprecated:
/** @deprecated resultSelector no longer supported, pipe to map instead */
Thanks
Documentation Related To Component:
fromEventPattern
Please check those that apply
Description Of The Issue
The behavior of fromEventPattern no longer matches what the documentation would suggest.
In particular it is stated that:
"If you need access to all event handler parameters (not only the first one), or you need to transform them in any way, you can call fromEventPattern with optional third parameter"
In the "Use with project function" example it has a comment that says the same thing but a different way.
The behavior appears to be that the observable will emit all the callback parameters as an array unless there is only one, in which case it will emit just the parameter without the array wrapper.
The commit 642a3a4 seems to confirm this behavior and also marks the resultSelector parameter as deprecated:
/** @deprecated resultSelector no longer supported, pipe to map instead */
Thanks