You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrading from @react-rxjs/core@0.2.0 -> @react-rxjs/core@0.5.0 came across this regression.
When an observable returns a function, we get a stringified (plus evaluated!) version of the function. This worked in the prior version.
constcounter$=timer(0,1000).pipe(startWith(0),shareReplay(1));const[useBoundMethodThatDoesntWork]=bind(()=>counter$.pipe(map((count)=>{return(s)=>`${s}: ${count}`;})));// .....constmethod=useBoundMethod();method('a')// -> Not a functiontypeofmethod// -> 'stirng'return({method})// -> function (s) { return "".concat(s, ": ").concat(count); }: 0:
This issue is fixed on 0.6.1. However, we will be publishing a patch for 0.5 shortly and I will add some tests to make sure that this doesn't happen again. Thanks a lot for reporting this!
Upgrading from
@react-rxjs/core@0.2.0
->@react-rxjs/core@0.5.0
came across this regression.When an observable returns a function, we get a stringified (plus evaluated!) version of the function. This worked in the prior version.
Code
The text was updated successfully, but these errors were encountered: