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
This has actually been an issue for a long time. I just ran into it recently and there's a long string of issues which eventually lead to this rfc and a couple of pull requests but unfortunately there doesn't seem to be much movement.
If you need a solution immediately there are a couple of addons you could try but barring that I guess it's just wait and see 🤷♂️
You could simply consider that your record is dirty when you enter your edit route and reload then record when you leave if you haven't hit the save button.
I also agree that this is kind of annoying but looking at the links @dknutsen posted, the general use case seems really complicate to handle.
Closing as a duplicate of #2455 (which we also elected to close). As noted, relationship rollback is a non-trivial problem.
That said, @hjdivad and I have some thoughts on a potential path for at least providing a signal to the relationship state for when it has been saved, which is much better than we do today.
Setting belongsTo relation will not change hasDirtyAttributes to true
if I have models/book.js
and I have models/author.js
if I do this
the relationship changed but model not changing hasDirtyAttributes
The text was updated successfully, but these errors were encountered: