LMUserProviderContext
Introduction
The LMUserProviderContext
is also a global level context that houses the user related information. It sits on the core of the application providing the user data across the application state.
Property | Type | Description | Optional |
---|---|---|---|
currentUser | Member | The currently logged-in user. | |
memberState | number | The state of the member. | |
logoutUser | () => void | null | Function to log out the user. | ✔️ |
currentCommunity | Community | The community the user belongs to. |
Reference
For reference checkout this file