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?