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
and we want to update some model with it but pick only specific fields, and then we want to update other model with the same object, but with different fields:
What happened? - First update function picked fields a and b, but instead of working with a clone of obj, it modified it.
Is it intended behaviour? The obvious workaround would be to clone obj manually before passing it to update function, but I think this is not intuitive.
The text was updated successfully, but these errors were encountered:
Suppose we have
and we want to update some model with it but pick only specific fields, and then we want to update other model with the same object, but with different fields:
What happened? - First update function picked fields
a
andb
, but instead of working with a clone ofobj
, it modified it.Is it intended behaviour? The obvious workaround would be to clone
obj
manually before passing it to update function, but I think this is not intuitive.The text was updated successfully, but these errors were encountered: