Skip to content
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

Cache WSProvider + api? #66

Open
niklasp opened this issue Feb 18, 2024 · 1 comment
Open

Cache WSProvider + api? #66

niklasp opened this issue Feb 18, 2024 · 1 comment

Comments

@niklasp
Copy link
Contributor

niklasp commented Feb 18, 2024

I have e multichain app (pollkadot relay + kusama relay). Atm switchActiveChain disconnects the connected api. in case of a dapp with only limited chains it would be great to cache the api instances alongside their wsprovider instances for faster and better ux

Also can you enable discussions as i feel this is more of a discussion.

@wottpal
Copy link
Member

wottpal commented Feb 23, 2024

Also can you enable discussions as i feel this is more of a discussion.

I have e multichain app (pollkadot relay + kusama relay). Atm switchActiveChain disconnects the connected api. in case of a dapp with only limited chains it would be great to cache the api instances alongside their wsprovider instances for faster and better ux

No strong opinion here tbh, could be a good addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants