How to use the createTransformer function from mobx

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

143
144
145
146
147
148
149
150
151
152
var transformFolder = m.createTransformer(function (folder) {
        return new DisplayFolder(folder, state);
});

// 返回每个文件夹的字符串列表
var stringTransformer = m.createTransformer(function (displayFolder) {
        var path = displayFolder.path;
        return path + "\n" +
                displayFolder.children.filter(function(child) {
                        return child.isVisible;
fork icon227
star icon0
watch icon21

+ 27 other calls in file