duality-labs / duality-web-app

2 stars 2 forks source link

feat: ensure user data is isolated to current wallet address #500

Closed dib542 closed 10 months ago

dib542 commented 10 months ago

This PR removes the "global" state of the common indexerProvider context, which was used early in development to create a single subscription to the LCD API through simple websockets. Now that the subscription manager is able to handle multiple subscriptions well, it can be used to ensure data returned from a useUserBalances hook is isolated to the requested address dependency in the hook.

This means that if the user does switch between accounts at any time, the data returned from one account will never be applied to the page of the other account.

dib542 commented 10 months ago

:tada: This PR is included in version 0.3.43 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: