Comments (13)
@ignromanov I am still unable to reproduce the disconnect error - I made a video of what I am seeing when trying this locally. https://www.loom.com/share/3d73a7ccfa1645cb9deb820fb8ea438c?sid=93f5efb4-5539-4075-a204-c9ea9dcea605
Might be good to confirm you are on the latest version of "@web3-onboard/injected-wallets": "^2.11.1"
from web3-onboard.
@ignromanov ahh ok I think I got it figured out, required a local storage clear to reproduce. Looking into this today. Will have a fix shortly.
from web3-onboard.
@ignromanov please give this a shot with the latest alpha version of @web3-onboard/core or framework package noted in the PR above - would love validation on your end prior to release
from web3-onboard.
Hi @logsdk can you provide more context for me around what this code is trying to do?
from web3-onboard.
Hi.
The same issue.
You need to connect to the DApp using Rabby wallet.
After pressing the disconnect button (calling the disconnect function) - an error is thrown.
const [{ wallet }, disconnect] = useConnectWallet()
await disconnect(wallet)
The reason is that the onboard.js:last_connected_wallet
key is missing from the local storage
from web3-onboard.
@ignromanov Disconnect using the approach as shown above working without issue on our demo sites - https://github.com/blocknative/react-demo/blob/89509379f4cd09299b45b2301769aa80a7c58991/src/App.js#L543
If you can provide more code for context I can assist further
from web3-onboard.
The reason was that flags autoConnectLastWallet
and autoConnectAllPreviousWallet
were false during onboard initialization
from web3-onboard.
@ignromanov does that mean we can close this issue?
from web3-onboard.
@Adamj1232 I think you should test with these flags set to False. You will get a disconnect error.
from web3-onboard.
@Adamj1232 I tried it on your test application. Try with these changes to reproduce it. I got an error.
![image](https://private-user-images.githubusercontent.com/3179314/339899127-ecf69bb2-9837-411f-a327-8f33bce5eaf8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5MzIxNjEsIm5iZiI6MTcxODkzMTg2MSwicGF0aCI6Ii8zMTc5MzE0LzMzOTg5OTEyNy1lY2Y2OWJiMi05ODM3LTQxMWYtYTMyNy04ZjMzYmNlNWVhZjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjFUMDEwNDIxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2Y3YTA2ZDI2YWE0ODk0ODM0OWRlZTBlOWQyYzkzMTk5NTQ0MzhlNTA5MjlkNjAxZmZjNjc5MGM1MTAzYWEwYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ._jpRLkmmknIsIdXG3jfxf0pZOlmqg80VnqcSdZJY5ZE)
from web3-onboard.
@ignromanov I am still unable to reproduce an error with that change
from web3-onboard.
@Adamj1232 Recorded a video reproduction of the error. Launched your repository with the change described above.
Screen.Recording.2024-06-14.at.22.53.38.mov
from web3-onboard.
We are seeing this same issue with the latest version on all packages and brave browser.
from web3-onboard.
Related Issues (20)
- injectedModule bug: "Cannot assign to read only property 'request' of object '[object Object]'" HOT 14
- Documentation mention wrong package `@web3-onboard/injected` HOT 4
- [Feature]: eip1271
- [BUG]: Event when user disconnects all wallets HOT 2
- [Feature]: Compatibility with Flutter
- thanks
- [Feature]: ALI Token Support
- connectWallet with autoSelect disables all wallets list
- [Feature]: Bloom Wallet Integration HOT 1
- curl -X GET "https://api.w3.org/ecosystems" -H "accept: application/json"
- WalletConnect not working with my custom evm chain
- Impossible to use transaction-preview package
- Bug: (SSR) Warning: Extra attributes from the server: style
- web3 onboard vue version can't get provider value HOT 9
- Message signing for fox wallet HOT 2
- Safe integration does not work on https://app.safe.global with @web3-onboard/gnosis
- Add chain method if chain is not available
- connect({}) throws runtime error, yet compiles according to type system HOT 2
- web3auth provider not changing chains when calling `switchChain`, but `connectedChain` does
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web3-onboard.