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
In backbone, it's possible to provide an isNew() function that relies on attributes other than the default id. This poses a problem for deletion in the Route server as destroy() checks to make sure a model isn't new before proceeding. If any key attributes used by a custom isNew() function are missing, the destroy will be aborted.
The most straight-forward remedy would be to ensure that all model attributes are available before destroy() is called. It's currently unclear to me whether it's safe to use the req.body provided by the client or if the server should call fetch.
The text was updated successfully, but these errors were encountered:
In backbone, it's possible to provide an
isNew()
function that relies on attributes other than the defaultid
. This poses a problem for deletion in the Route server asdestroy()
checks to make sure a model isn't new before proceeding. If any key attributes used by a customisNew()
function are missing, the destroy will be aborted.The most straight-forward remedy would be to ensure that all model attributes are available before
destroy()
is called. It's currently unclear to me whether it's safe to use thereq.body
provided by the client or if the server should callfetch
.The text was updated successfully, but these errors were encountered: