useLMUserProvider
Introduction
The useLMUserProvider
is the custom hook that provides details of the user. This handles all the logic and state to retrieve the user details.
Property | Type | Description |
---|---|---|
lmFeedUser | User | null | The current user of the feed, or null if no user is logged in. |
logoutUser | () => void | Function to log out the current user. |
lmFeedUserCurrentCommunity | Community | null | The current community of the user, or null if no community is selected. |
Example
For example implementation, checkout here