diff --git a/frontend/src/components/SettingsSidebar/index.jsx b/frontend/src/components/SettingsSidebar/index.jsx index 112be312023aa2335bb086afe932c50de545b9f0..83b0075f0a7d97320464ec226d47db870064bf43 100644 --- a/frontend/src/components/SettingsSidebar/index.jsx +++ b/frontend/src/components/SettingsSidebar/index.jsx @@ -413,7 +413,10 @@ function HoldToReveal({ children, holdForMs = 3_000 }) { if (!["Control", "Meta"].includes(e.key)) return; timeout = setTimeout(() => { setShowing(true); - showToast("Experimental feature previews unlocked!"); + // Setting toastId prevents hook spam from holding control too many times or the event not detaching + showToast("Experimental feature previews unlocked!", { + toastId: "anythingllm_experimental_feature_preview_unlocked", + }); window.localStorage.setItem( "anythingllm_experimental_feature_preview_unlocked", "enabled"