Skip to content

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

Open
@webdeb

Description

@webdeb

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions