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
{{ message }}
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
When a try to use defaultIfEmpty in a simple example it throws an error:
let emptyArray = [];
let source = Rx.Obsevable.from(emptyArray).defaultIfEmpty();
or
let source = Rx.Obsevable.from(emptyArray).defaultIfEmpty(true);
source.subscribe( (res:any) => console.log(res));
It throws the following error:
ReferenceError: defaultValue is not defined
at DefaultIfEmptyObserver.completed (rx.all.js:5132)
at DefaultIfEmptyObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (rx.all.js:1739)
at DefaultIfEmptyObserver.tryCatcher (rx.all.js:60)
at AutoDetachObserverPrototype.completed (rx.all.js:11674)
at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (rx.all.js:1739)
at loopRecursive (rx.all.js:2606)
at invokeRecImmediate as action
at ScheduledItem.invokeCore (rx.all.js:955)
at ScheduledItem.invoke (rx.all.js:943)
at runTrampoline (rx.all.js:1182)
The text was updated successfully, but these errors were encountered:
When a try to use defaultIfEmpty in a simple example it throws an error:
let emptyArray = [];
let source = Rx.Obsevable.from(emptyArray).defaultIfEmpty();
or
let source = Rx.Obsevable.from(emptyArray).defaultIfEmpty(true);
source.subscribe( (res:any) => console.log(res));
It throws the following error:
ReferenceError: defaultValue is not defined
at DefaultIfEmptyObserver.completed (rx.all.js:5132)
at DefaultIfEmptyObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (rx.all.js:1739)
at DefaultIfEmptyObserver.tryCatcher (rx.all.js:60)
at AutoDetachObserverPrototype.completed (rx.all.js:11674)
at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (rx.all.js:1739)
at loopRecursive (rx.all.js:2606)
at invokeRecImmediate as action
at ScheduledItem.invokeCore (rx.all.js:955)
at ScheduledItem.invoke (rx.all.js:943)
at runTrampoline (rx.all.js:1182)
The text was updated successfully, but these errors were encountered: