You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import ProjectsStore from './projects'
import OperatorsStore from './operators'
import StepsStore from './steps'
import remotedev from 'mobx-remotedev'
@remotedev(/*{ config }*/)
export class RootStore {
constructor() {
this.projectsStore = new ProjectsStore(this)
this.operatorsStore = new OperatorsStore(this)
this.stepsStore = new StepsStore(this)
}
}
export default new RootStore()
and creating instance of it that is provided to Provider which lead to error:
TypeError: _dec is not a function
Module../src/store/rootStore.js
src/store/rootStore.js:6
3 | import StepsStore from './steps'
4 | import remotedev from 'mobx-remotedev'
5 | @remotedev(/*{ config }*/)
> 6 | export class RootStore {
7 | constructor() {
8 | this.projectsStore = new ProjectsStore(this)
9 | this.operatorsStore = new OperatorsStore(this)
hi,
I use global store as described in https://mobx.js.org/best/store.html#combining-multiple-stores
so I'm decorating class with @RemoteDev(/{ config }/) like this:
and creating instance of it that is provided to Provider which lead to error:
working application (without remotedev) is here https://github.com/lipt0n/state-POC/tree/master/mobxtest
The text was updated successfully, but these errors were encountered: