How to use the trace function from mobx

Find comprehensive JavaScript mobx.trace code examples handpicked from public code repositorys.

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"]);
fork icon0
star icon0
watch icon0