PTX transmits data to PRX every second. The PRX should attach the payload to each ACK using nrf_esb_write_payload. In debugging on PRX, I see that the data is different every time. But the PTX receives data that was uploaded to the ASK for the first time.
That is, it turns out that after the first use of nrf_esb_write_payload on the PRX, it is impossible to change this data during subsequent transmissions.
If I do nrf_esb_flush_tx() on the PRX, it sends a normal ASK without load. As soon as I use nrf_esb_write_payload, the load that was at the very first call to nrf_esb_write_payload will be attached to the ASK.