Joel M. Turner

Illustration

Blog

Notes

~/notes//*/

mobx

MobX

Debugging

trace()

trace() helps show what it was that made MobX update. this is helpful for tracking down unexpected renders or infinite loops.

1import {trace} from 'mobx-react'
2
3{...}
4render() {
5 trace();
6 return ();
7}