@nozbe/watermelondb
Version:
Build powerful React Native and React web apps that scale from hundreds to tens of thousands of records and remain fast
14 lines (13 loc) • 383 B
JavaScript
;
exports.__esModule = true;
exports.default = doOnSubscribe;
var _wmelonRxShim = require("../__wmelonRxShim");
// Performs an action when Observable is subscribed to; analogous to `Observable.do`
function doOnSubscribe(onSubscribe) {
return function (source) {
return (0, _wmelonRxShim.defer)(function () {
onSubscribe();
return source;
});
};
}