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
I found that if we set backend on a Model and then start a session with schema.withMutations(...) (for bootstrap for instance) this will change the static backend prop setting withMutations to true. From this point on every time we make a change we are literally mutating the store.
The bug is in Model.js file
// Model.jsstaticgetBackend(){if(!this._sessionData.backend){constBackendClass=this.getBackendClass();constopts=this._getBackendOpts();if(this.session&&this.session.withMutations){// HERE! This will mutate the static prop `backend` on the Modelopts.withMutations=true;}// ...}returnthis._sessionData.backend;}
The text was updated successfully, but these errors were encountered:
I found that if we set
backend
on a Model and then start a session withschema.withMutations(...)
(for bootstrap for instance) this will change the staticbackend
prop settingwithMutations
totrue
. From this point on every time we make a change we are literally mutating the store.The bug is in
Model.js
fileThe text was updated successfully, but these errors were encountered: