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.
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 requestedaddress
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.