I believe that you get a key change notification, but by default it doesn't require any sort of confirmation and will just continue to work with the new key.
Even if you enable the key change notification, it is "non-blocking" in WhatsApp as outlined by the blog post: when you get the key change notification, the WhatsApp client will automatically without user intervention resend undelivered messages (unlike Signal, btw, from what I understand).