How to fix Safari SecurityError : Attempt to use history.replaceState() more than 100 times per 30seconds ?
I've developed a next js website with which works fine with android devices browsers and also any web browser but not iOS devices browsers and safari web browser on Macbook .
The problem is while navigating between website pages ( links ) the website hangs for a long time and doesn't navigate anywhere at all and the only way I can get the website to work again is by refreshing on that page .
I've checked the console on Macbook safari dev tools and I saw this error :
I don't know what causes this error .
How can I fix this error with iOS devices browsers and also safari web browser on mac and what's the cause of it ?
Thanks in advance .