Skip to content

Commit

Permalink
wrapper: initAcl rxjs upgrade fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Mar 12, 2019
1 parent 3789f76 commit 52dcc8b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/aragon-wrapper/src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Externals
import { ReplaySubject, Subject, BehaviorSubject, combineLatest, merge } from 'rxjs'
import { ReplaySubject, Subject, BehaviorSubject, combineLatest, merge, of } from 'rxjs'
import {
map, startWith, scan, tap, publishReplay, switchMap, flatMap, filter, first,
debounceTime
map, startWith, scan, tap, publish, publishReplay, switchMap, flatMap, filter, first, debounceTime
} from 'rxjs/operators'
import uuidv4 from 'uuid/v4'
import Web3 from 'web3'
Expand Down Expand Up @@ -277,8 +276,8 @@ export default class Aragon {
)

if (cachedPermissions) {
const permissons = Observable.of(cachedPermissions).publish()
this.permissions = merge(permissons, fetchedPermissions).publishReplay(1)
const permissons = of(cachedPermissions).pipe(publish())
this.permissions = merge(permissons, fetchedPermissions).pipe(publishReplay(1))
} else {
this.permissions = fetchedPermissions
}
Expand Down

0 comments on commit 52dcc8b

Please sign in to comment.