zalmoxisus / mobx-remotedev

MobX DevTools extension
MIT License
327 stars 40 forks source link

Support for "Redux DevTools Extension API" serialize option #51

Open tyleralves opened 4 years ago

tyleralves commented 4 years ago

I have seen some discussion that mobx-remotedev implements the "Redux DevTools Extension" API. So I'm curious whether the serialize option can be passed in.

This doesn't seem to work:

const DevRootStore: typeof RootStore = remotedev(RootStore, {
  remote: false,
  global: true,
  onlyActions: true,
  serialize: {
    replacer: (key, val) => key === 'root' ? 'root' : val;
  },
});