angular-update-guide
angular-update-guide copied to clipboard
Wrong instruction for Migration to v17
Affected Advanced Recommendations
Problem The current recommendation
Use
updateinstead ofmutatein Angular Signals. For exampleitems.mutate(itemsArray => itemsArray.push(newItem));will now beitems.update(itemsArray => [itemsArray, …newItem]);
Obviously, the array should be spreaded instead of the new item 😁