menu

mobx-state-tree

Opinionated, transactional, MobX powered state container combining the best features of the immutable and mutable world for an optimal DX

Channels
Team

A Good Logger

April 28, 2020 at 8:19am
Has anyone written a good logger for MST?
Im thinking something like this: https://github.com/LogRocket/redux-logger ?
I have had a stab at it but I suspect there must be many others who have done a better job than me.

May 18, 2020 at 4:08am
So this is what I ended up on, note the nested console logging groups. If others think this is useful I could turn it into a github repo.
  • reply
  • like
like-fill
1
  • reply
  • like
that looks dope! I'd love to try it :)
  • reply
  • like

May 19, 2020 at 5:44am
Same. Looks neat!
  • reply
  • like
Okay, you asked for it, here it is: https://github.com/mikecann/mst-log its obviously very new, please let me know if there are improvements / changes. Keen to get some PRs
like-fill
2
  • reply
  • like