Villagers, despite having history of trading multiple times, access to the workstation and beds, and having name tags on them, despawns after certain time has passed.
Steps to reproduce the issue: Transport villagers out of the village, give them workstation and beds, trade with them, and put name tags, contain them in a isolated room.
Expected result: Nothing happens, they remain present unless killed.
Actual result: Eventual despawning.
Related issues
Comments

This issue is being tracked at MCPE-191623.