Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
new Todo({ text: "spread the word" }),
new Todo({ text: "buy some milk", done: true }),
],
})
// although not strictly required, it is always a good idea to register your root stores
// as such, since this allows the model hook `onAttachedToRootStore` to work and other goodies
registerRootStore(rootStore)
// we can also connect the store to the redux dev tools
const remotedev = require("remotedev")
const connection = remotedev.connectViaExtension({
name: "Todo List Example",
})
connectReduxDevTools(remotedev, connection, rootStore)
return rootStore
}