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/flowSupport module
  • Logger: Centralize logging capabilities for debugging and monitoring using the lightning/logger module
  • Media Utils: Handle media files and streaming using the lightning/mediaUtils module
  • Message Service: Communicate between components that don't have a direct parent-child relationship using the lightning/messageService module
  • Navigation: Navigate programmatically between pages, apps, and records using the lightning/navigation module
  • Page Reference Utils: Work with page references and URLs using the lightning/pageReferenceUtils module
  • Platform Resource Loader: Load static resources, stylesheets, and scripts using the lightning/platformResourceLoader module
  • Platform Show Toast Event: Standardized user notifications using the lightning/platformShowToastEvent module
  • Refresh: Trigger data refreshes across components using the lightning/refresh module
  • User Consent Cookie: Manage user consent preferences and cookie compliance using the lightning/userConsentCookie module