skuid.model.Model.save() and skuid.model.Model.updateData() method signatures

  • 1
  • Question
  • Updated 1 year ago
Hello!

Skuid is awesome.

Something I noticed with the API for the skuid.model.Model.

Any thoughts on the design decision for the model.save() and model.updateData() method signatures?

I noticed that the skuid.model.Model.save() takes an object with a property with the callback function.

For skuid.model.Model.updateData() the method signature just takes a function callback and NOT an object.

Since they are both CRUD operation, I would have expected the signature to be the same. I spent a couple minutes not understanding why my callback in the save() method wasn't executing. I checked out the documentation and was able to fix it.
Photo of Joseph Ortiz

Joseph Ortiz

  • 594 Points 500 badge 2x thumb
  • good

Posted 1 year ago

  • 1

Be the first to post a reply!