I know that. I did it but even then entered into bootloop. Then tried many different things i. e dirty flash etc but all in vain. I managed to boot into OS after flashing patched AP along with BL, CP and CSC again.On the S10, you basically have to reboot into recovery an it loads the rooted OS. If you do a regular reboot into system, it won't be rooted. It's weird, this is the first device I've had so much trouble with running rooted. Try rebooting into twrp and then from twrp, reboot recovery, not system
My advice is not to update the Magisk to 1305. It is the culprit causing bootloop.