We have some parameters such as Text string value which is receiving the data from device side.
I have tested the data coming from device side and it is updating the string value on UI screen.
However, there can be a case when data will not be received every time from device, i.e. when the string value is null, i want to retain the previous value.
Currently I have used global variable to store the value.
But I want to avoid the global variable approach as there are many parameter .
Can it be achieved without using global variable?
Is there a function/component which can retain its value in UI?