@satoshai/kit 1.0.0 → 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.cjs CHANGED
@@ -710,7 +710,15 @@ var StacksWalletProvider = ({
710
710
  onAddressChange: handleAddressChange,
711
711
  onDisconnect: handleWcDisconnect
712
712
  });
713
- const { installed } = getStacksWallets();
713
+ const [installed, setInstalled] = react.useState(
714
+ () => getStacksWallets().installed
715
+ );
716
+ react.useEffect(() => {
717
+ const fresh = getStacksWallets().installed;
718
+ setInstalled(
719
+ (prev) => fresh.join(",") === prev.join(",") ? prev : fresh
720
+ );
721
+ }, []);
714
722
  const configured = wallets ?? [...SUPPORTED_STACKS_WALLETS];
715
723
  const walletInfos = configured.map((w) => ({
716
724
  id: w,