You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/@lwc/engine-core/README.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,17 +124,15 @@ If `setTrustedSignalSet` is called more than once, it will throw an error. If it
124
124
125
125
### setContextKeys
126
126
127
-
Enables a state manager context implementation to provide LWC with context Symbols, namely `connectContext` and `disconnectContext`. These symbols would then be defined on any manager-instantiated context as methods and those methods are called
128
-
with a ContextConnector object when contextful components are connected and disconnected.
127
+
Not intended for external use. Enables another library to establish contextful relationships via the LWC component tree. The `connectContext` and `disconnectContext` symbols that are provided are later used to identify methods that facilitate the establishment and dissolution of these contextful relationships.
129
128
130
129
### setTrustedContextSet()
131
130
132
-
This experimental API enables the addition of context as trusted context. If the [ENABLE_EXPERIMENTAL_SIGNALS](https://github.com/salesforce/lwc/blob/master/packages/%40lwc/features/README.md#lwcfeatures) feature is enabled
133
-
and state manager-defined context has been added to this set, the context object's connectContext and disconnectContext methods will be called with a ContextConnector when the associated component is connected and disconnected.
131
+
Not intended for external use. This experimental API enables the addition of context as trusted context. If the [ENABLE_EXPERIMENTAL_SIGNALS](https://github.com/salesforce/lwc/blob/master/packages/%40lwc/features/README.md#lwcfeatures) feature is enabled.
134
132
135
133
If `setTrustedContextSet` is called more than once, it will throw an error. If it is never called, then context will not be connected.
136
134
137
-
### ContextConnector
135
+
### ContextBinding
138
136
139
-
The context object's `connectContext` and `disconnectContext` methods are called with this object when contextful components are connected and disconnected. The ContextConnector exposes `provideContext` and `consumeContext`,
137
+
The context object's `connectContext` and `disconnectContext` methods are called with this object when contextful components are connected and disconnected. The ContextBinding exposes `provideContext` and `consumeContext`,
140
138
enabling the provision/consumption of a contextful Signal of a specified variety for the associated component.
0 commit comments