Seldom does the wind drop 20 knots instantly. Air has mass, just like the airplane does.
Glider starts sinking, push in the spoilers. Adjust pitch to regain airspeed if necessary.
If you KNOW there's a wind shear, plan for it with a bit of extra speed above the shear!