You are probably making the same mistake I was.Root is now disappearing on reboot though
Anyone having the same issues?
Once you flast rooted boot image and boot phone, go to Magisk, click on install and select Direct install. It will then install magisk and you will have phone even after reboot.