Dev only debug hook

This commit is contained in:
Eric Bailey
2026-01-14 14:56:54 -06:00
parent ddaeea5728
commit a95ad2f9eb
+2 -1
View File
@@ -9,6 +9,7 @@ import {
usePreferencesQuery,
} from '#/state/queries/preferences'
import {useAgent} from '#/state/session'
import * as env from '#/env'
import {
type LiveEventFeed,
type LiveEventFeedMetricContext,
@@ -40,7 +41,7 @@ function useWebOnlyDebugLiveEventPreferences() {
const agent = useAgent()
useEffect(() => {
if (isWeb && typeof window !== 'undefined') {
if (env.IS_DEV && isWeb && typeof window !== 'undefined') {
// @ts-ignore
window.__updateLiveEventPreferences = async (
action: LiveEventPreferencesAction,