plaid / react-plaid-link

React bindings for Plaid Link
https://plaid.github.io/react-plaid-link
MIT License
270 stars 152 forks source link

The Plaid dialog adds a new entry to the browser history #301

Open mauriciomelo opened 1 year ago

mauriciomelo commented 1 year ago

Hey folks, we're facing an issue with the browser's native "back' button and it looks like it's related to the plaid link. When the user opens the plaid dialog, a new history entry pointing to the current page is added to the stack but never removed. The issue is that the user has to click the back button multiple times to "make it work", after exiting the dialog. I think this issue is not related to our app's logic because I could reproduce it on your demo page: https://plaid.com/demo/

In the video below I'm opening and closing the dialog twice, after that I need to click the back button three times (n+1) in order to go back to the actual previous page.

https://user-images.githubusercontent.com/7356389/223541080-fd6ef067-4f56-48c4-96cb-a0bbbbc58aa4.mov

drabelogarner commented 10 months ago

Hi! This issue is still present in production. When the plaid UI is initialized, it pushes a new entry into the stack.

Jamshidaziz007 commented 4 weeks ago

Hi! This issue is still present in production. When the plaid UI is initialized, it pushes a new entry into the stack.

I'm also experiencing the same issue in my app.