This topic is bit old but actual in my case. Is this way of getting data is recommended? @ngouana did you managed to find any other solutions if not is the above solution works for you?
I have little difficulties in realizing this in my code.
In my container I am subscribing to some data and passing data trough onData() . Could you please give some hints, how to pass data which set through actions again by onData(), on same container?
Something like:
container:
subscribe to publication.
if no error
onData(null,{data})
actions:
call method
if no error
LocalState.set('DATA',data);
on same container:
const data=LocalState.get('DATA');
\\how it will be possible to pass data ?