Skip to content

useSystemSettings

useSystemSettings(options): UseSystemSettingsReturn

Hook for managing system settings (key-value storage)

ParameterType
optionsUseSystemSettingsOptions

UseSystemSettingsReturn

function SystemSettings() {
const { settings, isLoading, updateSetting } = useSystemSettings({ autoFetch: true })
const handleUpdateSetting = async (key: string, value: any) => {
await updateSetting(key, { value })
}
return <div>...</div>
}