sp webpart base.baseclientsidewebpart.context - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki
Home > @microsoft/sp-webpart-base > BaseClientSideWebPart > context
Use the context object to access common services and state associated with the component.
Signature:
readonly context: WebPartContext;Child classes are expected to override this field by redeclaring it with a specialized type. It is meant to be a read-only property; the type cannot be declared as read-only in the base class (because it is initialized outside the constructor), but child classes should redeclare it as readonly.