How to use the share function from rxjs

Find comprehensive JavaScript rxjs.share code examples handpicked from public code repositorys.

89
90
91
92
93
94
95
96
97
98
  })

experiment.bookingUpdates = experiment.dispatchedBookings.pipe(
  mergeMap((booking) => booking.statusEvents),
  catchError((err) => error('bookingUpdates', err)),
  share()
)

experiment.passengerUpdates = experiment.passengers.pipe(
  mergeMap(({ deliveredEvents, pickedUpEvents }) =>
fork icon1
star icon16
watch icon0

+ 2 other calls in file