react throws ‘state update on unmounted component’ error on post request but not delete

I am building a react application using RTK Query. In the submit function of my dialog, upon POSTing a record I get the ‘trying to update state of an unmounted component error’. If I replace the POST mutation with a DELETE mutation for an arbitrary record the error goes away. The two requests both invalidate the same tags in question. I don’t need to set the state after the request- and can prevent the error with useRef which I understand… However I cannot understand why this error arises simply based on the request type being performed. Below is an example of the two different calls.

await addRecord({ string:'hello' }).unwrap()
await deleteRecord(1).unwrap()