@satoshai/kit 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -708,7 +708,15 @@ var StacksWalletProvider = ({
708
708
  onAddressChange: handleAddressChange,
709
709
  onDisconnect: handleWcDisconnect
710
710
  });
711
- const { installed } = getStacksWallets();
711
+ const [installed, setInstalled] = useState(
712
+ () => getStacksWallets().installed
713
+ );
714
+ useEffect(() => {
715
+ const fresh = getStacksWallets().installed;
716
+ setInstalled(
717
+ (prev) => fresh.join(",") === prev.join(",") ? prev : fresh
718
+ );
719
+ }, []);
712
720
  const configured = wallets ?? [...SUPPORTED_STACKS_WALLETS];
713
721
  const walletInfos = configured.map((w) => ({
714
722
  id: w,