mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 11:34:56 -06:00
12 lines
216 B
JavaScript
12 lines
216 B
JavaScript
// @flow
|
|
import { ReplaySubject } from 'rxjs';
|
|
|
|
const subject: ReplaySubject<Position> = new ReplaySubject();
|
|
|
|
export function emitter(val: ?Position) {
|
|
subject.next(val);
|
|
}
|
|
|
|
emitter(null);
|
|
|
|
export default subject;
|