angular / in-memory-web-api

The code for this project has moved to the angular/angular repo. This repo is now archived.
MIT License
1.18k stars 232 forks source link

Do not mutate incoming request data #164

Closed wardbell closed 6 years ago

wardbell commented 6 years ago

Currently modifying the incoming entity-to-add by setting it's id. That causes an immediate update to the client's copy of the entity which would not be possible in the real world.

Should clone the entity.