How to use the trace function from mobx
Find comprehensive JavaScript mobx.trace code examples handpicked from public code repositorys.
GitHub: formegusto/study-reactjs
5 6 7 8 9 10 11 12 13 14
var mobx_1 = require("mobx"); var Message_1 = __importDefault(require("./types/Message")); var message = new Message_1.default("Foo", { name: "Michel" }, ["Joe", "Sara"]); var disposer = mobx_1.autorun(function () { console.log(message.title); mobx_1.trace(); }); message.updateTitle("Bar"); console.log(mobx_1.getDependencyTree(disposer)); message = new Message_1.default("Bar", { name: "Michel" }, ["Joe", "Sara"]);
0
0
0
mobx.runInAction is the most popular function in mobx (1598 examples)