So in my datapack I'm checking if a entity has an effect it gets from a tipped arrow, the tipped arrow gives the effect for 1 tick only to prevent a function from running multiple times. With any mobs it works fine but if I do the exact same thing with players it won't work unless I make the arrow give the effect for 2 ticks or more. Is this a bug? I believe it may be caused by the player and the mobs being handled in a different order.
If you can still reproduce this issue in 1.21 please attach a fully functional datapack, and add clear steps to the report to reproduce the issue.