From 8a5de03098f0376420bcad66397e911e45779462 Mon Sep 17 00:00:00 2001
From: Drew Powers <1369770+drwpow@users.noreply.github.com>
Date: Tue, 23 Nov 2021 15:38:26 -0700
Subject: [PATCH] Fix client:visible (#1999)
Fixes #1963
---
.changeset/famous-mice-sparkle.md | 5 +++++
.../components/RightSidebar/ThemeToggleButton.tsx | 10 +++++-----
packages/astro/src/runtime/client/visible.ts | 13 ++++++++-----
3 files changed, 18 insertions(+), 10 deletions(-)
create mode 100644 .changeset/famous-mice-sparkle.md
diff --git a/.changeset/famous-mice-sparkle.md b/.changeset/famous-mice-sparkle.md
new file mode 100644
index 000000000..37f163d31
--- /dev/null
+++ b/.changeset/famous-mice-sparkle.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Fix client:visible with multiple copies of same component
diff --git a/docs/src/components/RightSidebar/ThemeToggleButton.tsx b/docs/src/components/RightSidebar/ThemeToggleButton.tsx
index d3dc678c2..68927fad2 100644
--- a/docs/src/components/RightSidebar/ThemeToggleButton.tsx
+++ b/docs/src/components/RightSidebar/ThemeToggleButton.tsx
@@ -14,9 +14,9 @@ const icons = [
fill="currentColor"
>
,