How to use the spy function from mobx
Find comprehensive JavaScript mobx.spy code examples handpicked from public code repositorys.
GitHub: distolma/mobx-crosstab
39 40 41 42 43 44 45 46 47 48 49
return observable } function namedCrossTabDecorator (name) { return function (target, key, descriptor) { mobx.spy(function (event) { if (event.type !== 'add') return if (event.key !== key) return if (!target.isPrototypeOf(event.object)) return
0
1
0
+ 3 other calls in file
GitHub: pauldijou/watch-logs
3 4 5 6 7 8 9 10 11 12
function print(event) { console.log(event); } function init() { spy(event => { switch (event.type) { case 'action': case 'transaction': case 'reaction':
0
0
2
+ 13 other calls in file
mobx.runInAction is the most popular function in mobx (1598 examples)