Whenever you die from anything mobs go invisible and they are still there so hostile mobs can still hit you.
Related issues
Comments

Whenever you die from anything mobs go invisible and they are still there so hostile mobs can still hit you.
migrated
(Unassigned)
Unconfirmed
Minecraft 19w04b
Retrieved
Thank you for your report!
However, this issue is a Duplicate of MC-139122.
If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki