Bug description
I use react-router-dom and @ton-connect/ui-react and they don't seem to work well together.
Let's say we have the 'Connect wallet' button on the '/' route, and we also have an '/about' route with some content.
When using the <Link /> component provided by the react-router-dom package, if we go from '/' to '/about' and then back to '/' (using <Link /> or the back arrow in the browser), the 'Connect wallet' button just disappears.
Bug description I use react-router-dom and @ton-connect/ui-react and they don't seem to work well together.
Let's say we have the 'Connect wallet' button on the '/' route, and we also have an '/about' route with some content.
When using the
<Link />
component provided by the react-router-dom package, if we go from '/' to '/about' and then back to '/' (using<Link />
or the back arrow in the browser), the 'Connect wallet' button just disappears.Steps to reproduce the behavior:
npm install
andnpm run dev
command in the consolelocalhost:5173
in your browserExpected behavior The button should be on the page after going back to the page
Screen recording with the issue https://www.loom.com/share/fd9ad90a1eb44836829f54012fce2c02