Skip to content

ConnectButton onDisconnect event is not fired #7830

@tarasfo

Description

@tarasfo

onConnect works well, onDisconnect - is not trigegred when wallet is disconnected.

Setup:

"@thirdweb-dev/react-native-adapter": "^1.5.4",
"@walletconnect/react-native-compat": "^2.21.4",
"thirdweb": "^5.105.31",
"react-native": "0.79.5",
"expo": "~53.0.17",

thirdweb usage:

 <ConnectButton
    chain={avalanche}
    client={client}
    onConnect={(...data) => {
      console.log("connected", JSON.stringify(data));
      Alert.alert("connected", JSON.stringify(data));
    }}
    onDisconnect={(...data) => {
      console.log("disconnected", JSON.stringify(data));
      Alert.alert("disconnected", JSON.stringify(data));
    }}
  />

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions