I have two Screens: A and B
In A, I listen to firebase with
on() I start listen in
componentDidMount(). And if there is a live database update it is working. Before I change Screen in
componentWillUnmount() I detach firebase ref listener. It is working until now.
But after I change to Screen B and then going with navigate.goBack to screen A,
I don’t get updates because, I don’t start listen again after,
The problem is
navigate.goBack don’t fire
componentDidMount from Screen A!
What should I do?