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
{{ message }}
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
my model contains an array of plain string values. with deep-model i cannot shorten the array, only modify existing elements or add new ones to it.
mymodel.set({"arrayname":["val1","val2"]}) will ensure that val1 and val2 are the first two values, but nothing more. it does not do anything about the other values that the array may already contain.
this is caused by objToPath() in set translating my atomic set request into two independent requests for arrayname.0 and arrayname.1.
the only workaround that i can think of at this time is to model.set({"arrayname":null}) first to destroy the array, then rebuild it with the desired elements with a second model.set().
if anybody has a better idea i'd be grateful to hear it.