I have very specific flow which works in a loop. Everything is working if user use only next button. But then... back is coming.
My scenario
Screen 1(invokes loop) -> Screen 2 (Loads already existing data based on value selected on screen 1). User click back button -> Screen 1(everything is still ok) User selects another value which should be displayed on Screen 2 and clicks Next -> Screen 2 Value from first iteration is retained.
Same behavior is observed using standard input fields, custom LWC components which are lightning-inputs BUT for example standard display text is displaying CORRECT value.
My assumption is that this screen component is somehow hard-cached and whatever I'm trying to do (clearing data using assignments, I was trying to copy values to another variables in a flow, I've even used formula which was essentially a copy of a variable) it always show old values but only in inputs.
Any idea? How can I overcome this issue?
Yeah I know such a loop is not a good idea from the start but I don't have a choice right now.