How to refresh a page for only one time?

I wants to refresh a page for only one time using angular 7.

I have tried
ngOnInit(){
let win = (window as any);
if(win.location.search !== ‘?loaded’ ) {
win.location.search = ‘?loaded’;
win.location.reload();
}
}
but this code refresh the page continuously.
Please someone give me solution, Thanks in advance.

While you wait for better answers, could you explain in as non-technical language as possible why you want to do this?