Star trek comes from a time where they didn't pay much attention between episodes and the cause and effect between them. So we end up with characters running around with idiot balls until someone tech talks a new solution with the deflector.
Stargate mostly tried to avoid it, or shove it under the rug in the case of 3 shots disintegrates