zalmoxisus / mobx-remotedev

MobX DevTools extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

remotedev is trying to access computed properties before object initialized

farwayer opened this issue · comments

class Test {
  items = [];

  @computed get filtered() {
    return this.items.filter(() => true);
  }
}
const test = new (remoteDev(Test));
Cannot read property 'filter' of undefined

Thanks for the report.

We're listing all methods in order to be able to select them to call remotely from the monitor, but we should skip getters and setters.

Fixed in 0.2.7. Pleas let me know if it now works.

Look like fixed now. Thank you!

Are any plans to release new version to npm?

Thanks for the heads-up. I thought it's there. Fixed now.