Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LWC - Graphql query issue in child component, Graphql execute before the @api variable assigned the data from Parent component #986

Open
1 task done
ksivasankarcts opened this issue Oct 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ksivasankarcts
Copy link

Summary

Hi Team, @pozil @msrivastav13 @adityanaag3 @sat
LWC - Graphql Query issue
I've a scenario that parent component passing the record id to child component with @api parentId variable. The Graphql @wire executing before the parentId assigned which is used in query filters, I wanted to control the graphql to fire once the parentId is assiged and pass it to the graphql filters.

This issue is presented after Winter'25, earlier it was wroking fine. I'm not sure what was the problem.

Requesting your valuable inputs for this issue.

Salesforce Org Type

Sandbox

Steps To Reproduce

Create a List of Accounts component, select one Account and pass it to the child component that displays the list of Opportunites (use Graphql to retrieve Opprotunities by passing the accountid in filter) related to Account where the Stage is Open.

Current Behavior

The Graphql executing before the @api variable assigned from parent component.

Expected Behavior

Have a controll or execute the Graphql query after the @api variable assigned from parent component in LWC

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ksivasankarcts ksivasankarcts added the bug Something isn't working label Oct 29, 2024
Copy link
Contributor

Thank you for posting this issue. 🙇🏼‍♂️
We will come back to you shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants