Skip to content
Clone
main
7 lines 284 B
import { settingsKey, useAsync } from '@app/lib'
import { fetchPreferences } from './api'
/** Load the viewer's preferences once per section mount, local-first. */
export function usePreferences() {
return useAsync(fetchPreferences, [], { cacheKey: settingsKey('preferences') })
}