Skip to content

Commit 10b8377

Browse files
author
Ben Szymanski
committed
Revised Global Contexts section for clarity and added best practices guidance.
1 parent f9f8e83 commit 10b8377

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

16/umbraco-cms/customizing/extending-overview/extension-types/global-context.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
2-
description: Establish the bond for extensions to communication across the application
2+
description: Establish the bond for extensions to communication between packages and across the application
33
---
44

55
# Global Context
66

7-
{% hint style="warning" %}
8-
This page is a work in progress and may undergo further revisions, updates, or amendments. The information contained herein is subject to change without notice.
9-
{% endhint %}
7+
Global Context extension types allow extension authors to extract out shared logic code and make it available across the entire backoffice. These contexts are kept alive through the entire backoffice session.
108

11-
A global context manages the logic code from your Lit Element controllers.
9+
Global Contexts are useful when a package needs to share functionality with other package authors.
10+
11+
Extension authors should prefer to use other context types [Workspace Contexts](workspaces/workspace-context.md) over Global Contexts. Umbraco itself uses Global Contexts sparingly, for clipboard, current user, and icons.
1212

1313
## Registration of a Global Context
1414

1515
You can register a global context like so:
1616

17-
```typescript
17+
```json
1818
{
1919
type: 'globalContext',
2020
alias: 'My.GlobalContext.Products',

0 commit comments

Comments
 (0)