Enhance LocalDev to Support Aura-Enabled Component Calls in LWC Development

Open
#248 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
frontend, tooling

Research direction

No files, tests, or entry points are identified in the issue. Start by locating the LocalDev implementation and its existing LWC integration boundaries, then determine how Aura-enabled component calls and remote Apex calls are expected to work; done means both call types function from a LocalDev instance with appropriate validation.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.

I'm frustrated that the Local Development (LocalDev) feature for Lightning Web Components (LWC) in Salesforce doesn’t fully support calling Aura-enabled components or making remote Apex calls. This significantly limits the usefulness of LocalDev for larger projects that have data dependencies and need to interact with remote data and server-side logic to accurately simulate and test their functionality.

Describe the solution you'd like

I’d like LocalDev to support:

  1. Calling Aura-enabled components from LWCs, which is often needed for inter-component communication in complex applications.
  2. Allowing remote Apex calls to be executed from a LocalDev instance, which would let developers work with real data and server-side logic during local development, creating a more accurate development experience and eliminating the need to deploy or run tests in an org just to interact with these elements.

This would greatly enhance LocalDev’s usability for projects with complex data and component dependencies, making it an essential tool for all development phases.

Describe alternatives you've considered

Alternatives considered include:

  1. Running all development and testing in a sandbox environment, which is less efficient as it requires deployment for each iteration.
  2. Simulating data with static JSON files or mocks, which doesn’t accurately reflect real-world interactions and limits testing scope and accuracy.

Additional context

Adding support for Aura-enabled component calls and remote Apex calls in LocalDev would make the local development experience more robust, especially for developers working on projects with complex interactions and data dependencies. This enhancement would streamline development processes and improve the overall experience for those working on larger, data-intensive projects.

Dominant language
TypeScript
Stars
19
Forks
19
Avg merge
3d 12h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from salesforcecli/plugin-lightning-dev

All issues in salesforcecli/plugin-lightning-dev

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.