Skip to content

Instantly share code, notes, and snippets.

@alexvcasillas
Created May 15, 2017 07:34
Show Gist options
  • Save alexvcasillas/4691b12fddd959bfa5fbcd390ed7dc9f to your computer and use it in GitHub Desktop.
Save alexvcasillas/4691b12fddd959bfa5fbcd390ed7dc9f to your computer and use it in GitHub Desktop.
utils.js:14 Uncaught (in promise) Error: [mobx-state-tree] Cannot modify 'GithubStore@<root>', the object is protected and can only be modified by using an action.
at invariant (utils.js:14)
at Object.fail (utils.js:6)
at MSTAdministration.assertWritable (mst-node-administration.js:334)
at ObjectType.willChange (object.js:76)
at Array.<anonymous> (object.js:70)
at interceptChange (mobx.js:1461)
at setPropertyValue (mobx.js:2383)
at GithubStore.set [as user] (mobx.js:2363)
at github.js:34
at executeAction (mobx.js:660)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment