sdk icon indicating copy to clipboard operation
sdk copied to clipboard

[UI-REACT]: Not possible to render <TonConnectButton /> twice

Open webdeb opened this issue 8 months ago • 1 comments

Describe the bug

Strange behaviour when the component is rendered twice. I've one main component which shows the <TonConnectButton> if the user is not connected, and also one inside a modal when the user is about to make a transaction. The second is not rendered.

Expected behavior

The placement of the component should't matter, if its placed it should be rendered.

Current behavior

The fist is show, then I open the modal with the second, the second component is not shown at all, and when I close the modal, the first also disappears!!!

Steps to Reproduce

Place the TonConnectButton uncoditionally and a conditional one, toggle it with some button.

Environment

ui-react

Additional context

No response

webdeb avatar May 28 '24 23:05 webdeb