IAppContext
@spartanfx/react / spfx / IAppContext
Interface: IAppContext
Application-level context shared across the component tree using React Context API. Includes utilities, state, user/group info, and SPFI client.
Properties
Required
Options
| Property | Type | Description |
|---|---|---|
currentUser? | ISiteUserInfo | Current SharePoint user info. |
currentUserGroups? | ISiteGroupInfo[] | SharePoint groups the current user is a member of. |
graph? | GraphFI | PnPjs SPFI instance. |
isAdmin? | boolean | Indicates whether the current user has site admin permissions. |
sp? | SPFI | PnPjs SPFI instance. |
webPartContext? | WebPartContext | Current Web Part context from SPFx. |
Events & callbacks
| Property | Type | Description |
|---|---|---|
isMemberOf? | (groupName) => boolean | [Synchronous] Checks if the current user is a member of the specified group. |