0

I know that 2 way binding worked before winter release. Unfortunately with sandboxes updates this back door was closed. So you cannot pass attribute from aura to lwc component then update it in lwc and handle changes in aura. Does anybody have same problems with data binding in LWC?

  • 2
    LWC has always been 1 way, so, what you were experiencing before was probably an exploited bug which you took for granted? maybe you can share a minimal reproducible code sample of what used to work which doesn't anymore? as is, your question seems mostly open ended that wont have any concrete answer. – glls Sep 13 at 12:18
  • @glls +1 .. your comment should probably be answer with some example – salesforce-sas Sep 13 at 12:27
2

Lightning Web Components have always been 1 way as indicated in the documentation:

Data Binding Behavior Differences With Aura

The data binding between components for property values is one-way.

To communicate down from a parent component to a child component, set a property or call a method on the child component.

To communicate up from a child component to a parent component, send an event.

The update probably corrected a bug which you might had though was something that was working as expected. If you strongly feel that what you have should continue working, i'd encourage you to edit your post with a minimal reproduce-able code sample.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.