0

I have a LWC inside of a flow. I need to notify the LWC if the user has pressed the "Previous" or "Next" button of the flow.

Right now I am using disconnectedCallback() for that reason but it triggers for both "Previous" and "Next" button clicks.

Is there a way to communicate this between the flow and the LWC?

1

No. A component cannot specifically tell if the user moved forward or backwards.

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.