The repair against replace conversation
Can you just fix the leak?
Usually yes, and often that is the right call. The exception is pipe whose material or condition means the next leak is already on its way. You will get told which situation you are in, with the reason, and the decision stays yours.
I have grey flexible pipe. How urgent is it?
Polybutylene from that era fails from the inside with little warning, and it is no longer manufactured or code rated. It is not an emergency the day you notice it, but it is a planned replacement rather than a someday item, and replacing it before it fails is much cheaper than replacing it after.
Why do I keep getting pinhole leaks in copper?
Pinholes cluster where water chemistry, flow and physical contact combine. In hard water there is interior scaling, and in slab runs the pipe moves against concrete. A pattern of pinholes in one house is a sign to assess the whole run rather than to keep patching.