Skip to main content

LMFeedGeneralContext

Introduction

The LMFeedGeneralContext is internally placed at root levels of the application, It houses default actions and data for accessing general uses cases like, displaying a snackbar. Since it is placed at the core level, it will be available to almost any of the custom UI implementation you create.

PropertyTypeDescriptionOptional
displaySnackbarMessage(message: string) => voidFunction to display a snackbar message.Yes
closeSnackbar() => voidFunction to close the snackbar.Yes
showSnackbarbooleanIndicates whether the snackbar is visible.Yes
messagestringThe message to display in the snackbar.Yes
routesLMFeedCustomAppRoutesCustom routes for the LMFeed application.Yes
allowThumbnailbooleanDetermines if thumbnails are allowed.Yes
openPostCreationProgressBarbooleanIndicates if the post creation progress bar is open.Yes
setOpenPostCreationProgressBar(open: boolean) => voidFunction to set the state of the post creation progress bar.Yes

Example

For example implementation, checkout here