Skip to content
Advertisement

Not understanding payload in update action

I am having trouble understanding in how will the payload look in the first action. Why in the first one there is { } and ... , what does that give? How do I pass data into it, when I call it from a component? In the second one, i would just pass an object, but I don’t get the first one.

JavaScript
JavaScript

Advertisement

Answer

call update like this.

JavaScript

in update, idis123, and rest is {name: 'your name',tel: 'your tel'}

JavaScript
Advertisement