Mage Slayer's first benefit says...
When a creature within 5 feet of you casts a spell, you can use your reaction to make a melee weapon attack against that creature.
Does casting a spell encompass the entire spell effect or just the initation of the spell effect? If the latter, will the effect continue even if the caster dies from the Mage Slayer attack?