I am trying to destroy a record and I get this error
An adapter cannot assign a new id to a record that already has an id.
[…] had id: 25 and you tried to update it with null. This likely happened because
your server returned data in response to a find or update that had a different
id than the one you sent.
My REST API returns a 200 status code with an empty object response {}. I assume that’s where the problem lies, so I have been trying to customize several serializer hooks (normalizeDeleteRecordResponse, extractDeleteRecord, or even just normalizeResponse) but none of those get actually called.
Looking at my stack trace, the error seems to be in the didSaveRecord hook, which I assume is receiving the empty JSON payload and passing it to updateId.