-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
integrating with get-starknet-wallet #77
Conversation
`connectors` are deps of an inner useEffect in the core lib, by using memo we can avoid multiple auto-connect attempts
`connectors` are deps of an inner useEffect in the core lib, by using memo we can avoid multiple auto-connect attempts
since GSW runs from dapp context and always returning a wallet wrapper for `getStarknet` calls, we shouldn't expect ConnectorNotFoundError errors, hence we better display the actual error
using get-starknet-wallet to add multiple StarkNet wallets support in starknet-react
To be honest, im not sure why we are using |
@tarrencev when dapps access I believe we have a rare opportunity (since no real legacy handling is required) to provide users with good UX while making multi-wallet integration (really) easy to both dapps devs and wallet providers. one more thing - by not using a lib like |
I'm not convinced that pushing the connect wallet modal to a low-level library is the right path forward. As a react library we expect our users to build their own modal that fits with their app's style and ux. I think the path forward for us is to remove the dependency on |
Yeah I agree with that. I think a good direction is to continue expanding the base connector interface to support the various integration points wallets need and then each wallet can implement it to be compatible with |
I agree with that and that's how I view it on my |
We actually planning on refactoring the (now community official) lib - https://github.com/starknet-community-libs/get-starknet - to core lib which holds the connect/disconnect/logics part, and the UI part - which currently only have a svelte impl but might hold more frameworks in the future. |
Yep I saw that and I think we can now move forward with the integration. |
This has been fixed. |
Enhancement:
I've created a new library that is compatible with the current
getStarknet()
API but is able to support more wallets on StarkNet.This PR integrates starknet-react with that lib - adding multiple StarkNet wallets support for starknet-react.