LWCIntermediateconsoleworkspaceservice-cloud
Design LWC for console app workspace integration
Real World Scenario
Service console LWC opens related records in subtabs but breaks when pinned tab refreshed.
Expected Answer
• Workspace API openTab openSubtab from lightning/platformWorkspaceApi
• getFocusedTabInfo for context-aware behavior
• Handle tab refresh event reinitializing state
• Primary tab vs subtab navigation patterns documented
• Test console vs standard navigation divergent code paths
• Keyboard shortcuts not conflicting with console
• Mobile console limited API graceful fallback
Follow-Up Questions & Answers
Click to expand — each follow-up includes a direct, interview-ready answer
Direct answer: Workspace API openTab openSubtab from lightning/platformWorkspaceApi Also consider: getFocusedTabInfo for context-aware behavior In practice: Handle tab refresh event reinitializing state Balance speed of delivery with maintainability.
Architect Perspective
Console APIs differ from standard Lightning—test exclusively in console app context.