Git Product home page Git Product logo

Comments (4)

Raathigesh avatar Raathigesh commented on May 28, 2024

The app uses a socket connection to send payload back and forth. This could be because you are trying to send some non-serializable data. Would you be able to provide a sample repo where this is reproducible?

from wiretap.

scott-cornwell avatar scott-cornwell commented on May 28, 2024

Same problem here. I'm using latest mobx with nested stores, maybe that has something to do with it?

from wiretap.

johnhamm avatar johnhamm commented on May 28, 2024

Same here. Using Mobx 5.5.2 and nested stores as well.

from wiretap.

johnhamm avatar johnhamm commented on May 28, 2024

Found the issue, but I'm not sure how to fix it.

I have a root store:

export class AppStore {
  @observable uiStore: UiStore;
  @observable otherStore: OtherStore;

  constructor() {
    this.uiStore = new UiStore(this);
    this.otherStore = new OtherStore(this);
  }
  ...
}

export class UiStore {
  constructor(private appStore: AppStore) {}
}

This code causes the "Maximum call stack size exceeded" error above. If I change the code to this:

export class AppStore {
  @observable uiStore: UiStore;
  @observable otherStore: OtherStore;

  constructor() {
    this.uiStore = new UiStore();
    this.otherStore = new OtherStore();
  }
  ...
}

export class UiStore {
  constructor() {}
}

It works, but then I cannot access the root store from the child stores. Is there a way to prevent Wiretap from parsing certain properties of a store (perhaps if they are marked private?)

from wiretap.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.