The answer to 'when to replace electrical repair' is that you should typically replace electrical components or wiring when they show signs of wear, damage, or no longer function properly. This includes things like frayed or cracked wiring, flickering lights, outlets that don't work, and circuit breakers that trip frequently. Replacing worn or damaged electrical components can help prevent safety hazards and maintain the reliability of your home's electrical system.
As a general rule, it's a good idea to have a licensed electrician inspect your home's electrical system every 5-10 years, or anytime you notice changes or issues. They can identify potential problems and recommend repairs or replacements before they become more serious. Trying to DIY electrical work can be dangerous if you're not properly trained, so it's usually best to call in a professional for anything beyond basic tasks like replacing light fixtures or switches.