Skip to main content

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.

PropertyTypeDescription
lmFeedUserUser | nullThe current user of the feed, or null if no user is logged in.
logoutUser() => voidFunction to log out the current user.
lmFeedUserCurrentCommunityCommunity | nullThe current community of the user, or null if no community is selected.

Example

For example implementation, checkout here