Why does the tension of the rope change suddenly while the spring and elastic rope can't change suddenly

Why does the tension of the rope change suddenly while the spring and elastic rope can't change suddenly

If you use 10N force to pull the rope, the length of the rope will not change; if you use 20n force to pull the rope, the rope is still that long
When you pull the rope with 10N force, the tension will change instantly, and the rope will not change
However, the spring force follows Hooke's law, that is, f = k △ X
At the moment when the force is removed, as long as the length of the spring remains unchanged, then the elastic force remains unchanged, because △ x is constant
Mutation means that the force changes in an instant