How to use the mobx/lib/mobx.module.js.toJS function in mobx

To help you get started, we’ve selected a few mobx examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elmsln / lrnwebcomponents / elements / haxor-slevin / haxor-slevin.js View on Github external
autorun(reaction => {
      this.activeTitle = toJS(store.activeTitle);
      this.shareUrl = document.location.href;
      this.shareMsg = this.activeTitle + " " + this.shareUrl;
      if (varGet(store.activeItem, "metadata.fields.subtitle", false)) {
        this.subtitle = store.activeItem.metadata.fields.subtitle;
      } else {
        this.subtitle = false;
      }
      // look for image on the post and make it the pin share
      if (varGet(store.activeItem, "metadata.fields.images.0.src", false)) {
        this.activeImage = store.activeItem.metadata.fields.images[0].src;
      }
      this.__disposer.push(reaction);
    });
  }
github elmsln / lrnwebcomponents / elements / haxcms-elements / lib / ui-components / navigation / site-menu.js View on Github external
autorun(reaction => {
      this.editMode = toJS(store.editMode);
      this.__disposer.push(reaction);
    });
  }
github elmsln / lrnwebcomponents / elements / haxcms-elements / lib / core / haxcms-site-builder.js View on Github external
autorun(reaction => {
        this.themeData = toJS(store.themeData);
        if (this.themeData && this.themeData.element !== this.themeName) {
          this.themeName = this.themeData.element;
        }
        this.__disposer.push(reaction);
      });
      autorun(reaction => {
github elmsln / lrnwebcomponents / elements / haxcms-elements / lib / ui-components / navigation / site-menu-button.js View on Github external
autorun(reaction => {
      this.activeRouterManifestIndex = toJS(store.activeRouterManifestIndex);
      this.__disposer.push(reaction);
    });
    autorun(reaction => {
github elmsln / lrnwebcomponents / elements / haxcms-elements / lib / core / haxcms-site-editor-ui.js View on Github external
autorun(reaction => {
      this.manifest = toJS(store.manifest);
      this.icon = "hax:site-settings";
      this.__disposer.push(reaction);
    });
    autorun(reaction => {
github elmsln / lrnwebcomponents / elements / haxcms-elements / lib / core / haxcms-outline-editor-dialog.js View on Github external
autorun(reaction => {
      this.manifestItems = [...toJS(store.manifest.items)];
      this.__disposer.push(reaction);
    });
  }
github elmsln / lrnwebcomponents / elements / example-haxcms-theme / example-haxcms-theme.js View on Github external
autorun(reaction => {
      this.editMode = toJS(store.editMode);
      this.__disposer.push(reaction);
    });
  }
github elmsln / lrnwebcomponents / elements / haxcms-elements / lib / ui-components / navigation / site-menu-button.js View on Github external
this.__disposer2 = autorun(() => {
      this.activeManifestIndex = toJS(store.activeManifestIndex);
    });
    this.__disposer3 = autorun(() => {
github elmsln / lrnwebcomponents / elements / haxcms-elements / lib / core / haxcms-site-dashboard.js View on Github external
autorun(reaction => {
      this.jwt = toJS(store.jwt);
      this.__disposer.push(reaction);
    });
    autorun(reaction => {
github elmsln / lrnwebcomponents / elements / haxor-slevin / src / haxor-slevin.js View on Github external
autorun(reaction => {
      this.activeManifestIndexCounter = toJS(store.activeManifestIndexCounter);
      this.__disposer.push(reaction);
    });
    autorun(reaction => {