CollisionShape2D's disabled property not not update in time

Godot Version

4.2.2.stable.mono.official

Question

I’m currently working on adding a combat system to my game. I’ve set up a melee hitbox and I’m using AnimationPlayer to toggle the CollisionShape2D on and off. However, I’ve noticed that the physics engine might not update quickly enough during the brief moment the hitbox is active in the animation. Does anyone have any suggestions on how to fix this? Thanks in advance!