docs(desktop): correct WorkspacePageHeaderControl older-host note
Some checks are pending
Deploy Site / deploy-vercel (push) Waiting to run
Deploy Site / deploy-docs (push) Waiting to run
auto-fix lint issues & formatting / Generate eslint --fix patch (push) Waiting to run
auto-fix lint issues & formatting / Apply patch (push) Blocked by required conditions
Some checks are pending
Deploy Site / deploy-vercel (push) Waiting to run
Deploy Site / deploy-docs (push) Waiting to run
auto-fix lint issues & formatting / Generate eslint --fix patch (push) Waiting to run
auto-fix lint issues & formatting / Apply patch (push) Blocked by required conditions
A named import of a missing SDK export fails to link through the runtime shim, so the plugin never loads; it is not undefined. Point authors at a namespace-import feature-detect or the raw Contribute form. Refs #123597 Originally authored by Justin Haynes (@jhaynes).
This commit is contained in:
committed by
brooklyn!
parent
aa25f9e85f
commit
929de15c73
@@ -832,9 +832,11 @@ jsx(WorkspacePageHeaderControl, {
|
||||
})
|
||||
```
|
||||
|
||||
`WorkspacePageHeaderControl` is new in this release. A plugin that must also
|
||||
run on older desktop builds, where the import is `undefined`, keeps the raw
|
||||
`Contribute` form above.
|
||||
`WorkspacePageHeaderControl` is new in this release. Older desktop builds don't
|
||||
export it, and a named import of a missing SDK export stops the plugin module
|
||||
from loading. A plugin that must also run on older builds either feature-detects
|
||||
through a namespace import (`import * as sdk from '@hermes/plugin-sdk'`, then
|
||||
`sdk.WorkspacePageHeaderControl ?? …`) or keeps the raw `Contribute` form above.
|
||||
|
||||
### Sidebar nav visibility and order (`SIDEBAR_NAV_PREFS_AREA`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user