Skip to main content
Settings.useSettings() provides real-time access to your app’s workspace settings in React components. It automatically subscribes to settings updates, so your components will always reflect the current configuration.

Parameters

WorkspaceSettingsSchema
required
The schema built with Settings.defineWorkspaceSchema, imported from your schema file.

Returns

An object containing all workspace settings values, fully typed based on your schema definition. Every value is null until it has been set.

Example

src/app/extensions/sync-status/extension.tsx

Type safety

The hook’s return type is automatically inferred from your schema:
src/app/settings/schema.ts