Skip to main content

Joel M. Turner

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}

© 2012-2020, Proudly built with Gatsby and Theme UI