Sets the browser's document title, automatically including the app's name
from the manifest.
This follows the same convention as Sanity Studio workspaces, where the
workspace name is always present in the title:
With a view title: <viewTitle> | <appTitle>
Without a view title: <appTitle>
The Sanity dashboard appends | Sanity to produce the final browser tab title.
Works in both Dashboard runtimes: it manages the document title over the Comlink connection, and
no-ops under the message bus, where the Dashboard host owns the title.
Parameters
OptionalviewTitle: string
An optional view-specific title to prepend to the app title.
Sets the browser's document title, automatically including the app's name from the manifest.
This follows the same convention as Sanity Studio workspaces, where the workspace name is always present in the title:
<viewTitle> | <appTitle><appTitle>The Sanity dashboard appends
| Sanityto produce the final browser tab title.Works in both Dashboard runtimes: it manages the document title over the Comlink connection, and no-ops under the message bus, where the Dashboard host owns the title.