[This is wrong, I misremembered, I lost root rather than a bootloop.]I unlocked the bootloader and flashed TWRP latest twrp-3.5.A10-apollo-geoanto555.img (Mi 10T). However, when flashing ROM then Magisk 22, phone keeps rebooting on recovery. I don't know what to do? Can you please help me?
Exactly that happened to me. I posted in detail, I think in the forum for last week's ROM. Essentially, you extract the boot.img from the ROM you're using and run Magisk to patch it, then install it. Very easy. (I was using OrangeFox custom recovery on Redmi Note 7 lavender, but should be the same with TWRP). HTH