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
Currently docs for Model.reload does not specify how reload works when object is dirty (hasDirtyAttributes returns true). I was sure that reload was discarding all changes made to record, and load fresh state from server. Right now I see that changes need to be rolledback. Please add clarification to documentation what happens in that case.
Versions
Run the following command and paste the output below: pnpm list ember-source && pnpm list ember-cli && pnpm list "*ember-data*".
correct, reload will update remote state only. It will not discard any mutations you've made. I'm not sure its worth adjusting documentation as this API is scheduled for deprecation and model.reload works the same as any other request in this way.
Description
Currently docs for Model.reload does not specify how reload works when object is dirty (hasDirtyAttributes returns true). I was sure that reload was discarding all changes made to record, and load fresh state from server. Right now I see that changes need to be rolledback. Please add clarification to documentation what happens in that case.
Versions
Run the following command and paste the output below:
pnpm list ember-source && pnpm list ember-cli && pnpm list "*ember-data*"
.The text was updated successfully, but these errors were encountered: