Skip to main content
Version: 1.0

lwc utils

This index lists utility classes and modules for discoverability and code suggestion enhancement.


sharedUtils (LWC)

Path: force-app/main/utils/lwc/sharedUtils/sharedUtils.js

  • showToast(title, message, variant, mode = 'dismissible'): Shows a toast notification. (static)
  • handleApexError(errorObj, header): Handles Apex errors and shows a toast. (static)
  • uniqueUserSessionId(): Returns a unique session id (not a real Salesforce sessionId). (static)
  • currentWindowHashParams(): Returns the current window's hash parameters. (static)