What’s the alternative to location.reload(true) in JavaScript?

Same here—after working on SPAs for a while, I’ve stopped relying on tricks like javascript:location.reload(true) altogether. If I truly need a full reload (like after a major config change), I just use this:

window.location.href = window.location.href;

It gives a clean slate. But honestly, more often than not, I opt for Angular’s built-in reactive features or Router.navigate() to refresh components without losing state. It’s better UX, faster, and more idiomatic to how Angular apps should behave.