UNPKG

mobx-state-tree

Version:

Opinionated, transactional, MobX powered state container

10 lines (7 loc) 277 B
"use strict" import { getPath } from "mobx-state-tree" export default function simpleActionLogger(call, next) { if (call.type === "action" && call.parentId === 0) console.log("[MST action call] " + getPath(call.context) + "/" + call.name) return next(call) }