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
After updating from 3.0.0-alpha.3 to 3.0.2 the parameter to afterCreate seems to no longer be a mirage model. It used to have .update as a method on it, and now it does not.
The text was updated successfully, but these errors were encountered:
@RobbieTheWagner could you please confirm you have the same version of miragejs? I believe described behavior has nothing to do with ember-cli-mirage and most likely caused by some changes in miragejs
I see this as well using ember-cli-mirage: 3.0.4 and miragejs: 0.1.48.
I'm using neither Ember data models nor mirage models - perhaps that's the issue. I did try creating a mirage model but that didn't seem to make a difference. As a work around I used the server.db.<modelName>.update() function inside the afterCreate.
After updating from 3.0.0-alpha.3 to 3.0.2 the parameter to
afterCreate
seems to no longer be a mirage model. It used to have.update
as a method on it, and now it does not.The text was updated successfully, but these errors were encountered: