useSystemSettings
useSystemSettings(
options):UseSystemSettingsReturn
Hook for managing system settings (key-value storage)
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options | UseSystemSettingsOptions |
Returns
Section titled “Returns”UseSystemSettingsReturn
Example
Section titled “Example”function SystemSettings() { const { settings, isLoading, updateSetting } = useSystemSettings({ autoFetch: true })
const handleUpdateSetting = async (key: string, value: any) => { await updateSetting(key, { value }) }
return <div>...</div>}