From 1dad4f83dd50512d13f6f806178496837abe7885 Mon Sep 17 00:00:00 2001 From: Joseph Hale Date: Fri, 15 Aug 2025 23:20:52 -0700 Subject: [PATCH] fix: Change default settings caller name The `callerName` is optional -- it's a value that's useful during debugging. Now the default value is more meaningful. --- src/settings/useSettings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/useSettings.ts b/src/settings/useSettings.ts index 65c9719..2c17353 100644 --- a/src/settings/useSettings.ts +++ b/src/settings/useSettings.ts @@ -17,7 +17,7 @@ export async function initSettings() { store.update(Object.fromEntries(entries)); } -export function useSettings(callerName: string = 'settings') { +export function useSettings(callerName: string = 'UnknownCaller') { const subscribe = useCallback[0]>((listener) => store.subscribe(callerName, listener), [store, callerName]); const getSnapshot = useCallback(() => store.getSnapshot(), [store]); const snapshot = useSyncExternalStore(subscribe, getSnapshot); -- 2.51.2