add input event observer and hook the value setter

This commit is contained in:
Yanzhen Yu
2018-10-11 16:12:32 +08:00
parent 46ab1d6e80
commit 40f29e5353
4 changed files with 139 additions and 4 deletions

View File

@@ -92,6 +92,16 @@ function record(options: recordOptions) {
},
}),
),
inputCb: v =>
emit(
wrapEvent({
type: EventType.IncrementalSnapshot,
data: {
source: IncrementalSource.Input,
...v,
},
}),
),
});
});
} catch (error) {