useWorkspaceSettings() hook provides real-time access to your app’s workspace settings. It automatically subscribes to settings updates, so your components will always reflect the current configuration.
Parameters
This hook takes no parameters. The return type is automatically inferred from your workspace settings schema defined insrc/app.settings.ts.
Returns
Returns an object containing all workspace settings values as defined in your schema. The returned object is fully typed based on your schema definition.Example
widget.tsx
Type Safety
The hook’s return type is automatically inferred from your schema:app.settings.ts