0.1.5 add per rx add skip option, by default is will be skip none, emit last value upon subscription
parent
f9e71b443c
commit
d257ed459d
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@uci-utils/rx-class",
|
||||
"version": "0.1.4",
|
||||
"version": "0.1.5",
|
||||
"description": "class that support reactive properites",
|
||||
"main": "src/rx-class.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -78,8 +78,7 @@ export default class RxClass extends EventEmitter {
|
|||
if (opts.amend_path || this._rx_.amend_path) rx.amendValue = (value,path) => {return {value:value, path: path}}
|
||||
// console.log(path,': initial value===>',rx.amendValue(rx.value,rx.path))
|
||||
rx.obs = from(new BehaviorSubject(rx.amendValue(rx.value,rx.path)).pipe(
|
||||
// rx.obs = from(new ReplaySubject(1).pipe(
|
||||
skip(this._rx_.skip),
|
||||
skip(opts.skip != null ? opts.skip : this._rx_.skip),
|
||||
distinctUntilChanged()
|
||||
// ,
|
||||
// takeUntil($get(this.$deleted,path))
|
||||
|
|
Loading…
Reference in New Issue