Skip to content

Hook useStringSetting()

useStringSetting(path: string, key: string, defaultValue?: string | null): [string | null, (value: string | null) => void]

Source: settings.ts

Returns the value of a setting and a function to update it

Parameters

path

string

The path of the settings file

key

string

The key of the setting

defaultValue?

The default value of the setting

string | null

Returns

[string | null, (value: string | null) => void]

The value of a setting and a function to update it

Built by Prozilla