LWC Utility Modules
Utility modules complement Lightning base components by providing functionality and services that extend beyond individual component capabilities. These modules offer JavaScript functions and services that help you build robust and integrated apps.
Utility modules include:
- Flow Support: Control flow navigation and notify the flow of changes in attribute values using the
lightning/flowSupportmodule - Logger: Centralize logging capabilities for debugging and monitoring using the
lightning/loggermodule - Media Utils: Handle media files and streaming using the
lightning/mediaUtilsmodule - Message Service: Communicate between components that don't have a direct parent-child relationship using the
lightning/messageServicemodule - Navigation: Navigate programmatically between pages, apps, and records using the
lightning/navigationmodule - Page Reference Utils: Work with page references and URLs using the
lightning/pageReferenceUtilsmodule - Platform Resource Loader: Load static resources, stylesheets, and scripts using the
lightning/platformResourceLoadermodule - Platform Show Toast Event: Standardized user notifications using the
lightning/platformShowToastEventmodule - Refresh: Trigger data refreshes across components using the
lightning/refreshmodule - User Consent Cookie: Manage user consent preferences and cookie compliance using the
lightning/userConsentCookiemodule