history.push inside IFRAME is reloading the IFRAME page continuously using ReactJS

Viewed 82

I'm trying to use history.push() using react router v5. My website is embedded into another main site as an iframe. When history.push() is used I'm observing a strange behaviour that my website which is inside the iframe is continuously reloading.

Note : This is happening in all browsers.

Link to demo

Link to Code

1 Answers

A recursive call without base condition was identified due to which infinite calls were made which leaded to continuous reload. Link for the bug fix

Related